/*
  ETECHTICS SOFTWARE SOLUTIONS — Services pages
  -------------------------------------------------
  Shared styles for the Services hub (/services/) and all 5 category
  pages. Deliberately self-contained (does not import home.css) so a
  Services page never loads homepage-only weight (hero graphic,
  cluster-grid, etc.) it doesn't use.

  Depends on css/tokens.css, css/base.css.
*/

/* ---------------------------------------------------------------
   Page hero (every Services page uses this same intro band)
   ------------------------------------------------------------
   Reworked for the Phase 11 design-consistency pass: the reference
   site's interior-page hero is a light, decorative band (soft
   radial color washes + thin geometric accent shapes) rather than a
   flat single-tone box. Recreated here with CSS gradients/shapes
   only — no new image assets — so it cascades to every page that
   already uses .service-hero (Services hub + 5 categories,
   Industries, Collaborative Models, About, Contact, Blog, and all 4
   protected pages) with zero markup changes.
--------------------------------------------------------------- */
.service-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 150, 0, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 92% 75%, rgba(31, 123, 217, 0.10) 0%, transparent 40%),
    var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}
.service-hero::before,
.service-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(0, 50, 102, 0.10);
}
.service-hero::before {
  top: 18%;
  right: 8%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.service-hero::after {
  bottom: 14%;
  right: 20%;
  width: 22px;
  height: 22px;
  border-color: rgba(255, 150, 0, 0.30);
  transform: rotate(20deg);
}
.service-hero__eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue-600);
  margin: 0 0 var(--space-2);
}
.service-hero h1 {
  position: relative;
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  max-width: 26ch;
  margin-bottom: var(--space-2);
}
.service-hero__lede {
  position: relative;
  font-size: var(--font-size-md);
  color: var(--color-body-text);
  max-width: 60ch;
  margin-bottom: var(--space-3);
}
.service-hero__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------------------------------------------------------------
   Shared inline text-link style (used inside card copy)
--------------------------------------------------------------- */
.text-link {
  font-weight: var(--font-weight-semibold);
  color: var(--color-blue-600);
}

/* ---------------------------------------------------------------
   Section rhythm shared by every capability/service block
--------------------------------------------------------------- */
.service-block {
  padding-block: var(--space-6);
  scroll-margin-top: calc(var(--navbar-height) + var(--space-2));
}
.service-block:nth-of-type(even) {
  background: var(--color-surface-alt);
}
.service-block__head {
  max-width: 70ch;
  margin: 0 0 var(--space-4);
}
.service-block__head h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}
.service-block__head p {
  color: var(--color-muted);
  font-size: var(--font-size-md);
  margin: 0;
}

/* ---------------------------------------------------------------
   Item cards within a block (individual capability/service)
   ------------------------------------------------------------
   Post-Phase-17 owner correction: lightened from a fully-bordered,
   shadowed, corner-decorated card to a flatter tile — a colored top
   accent plus a background tint carries the "card" identity, rather
   than a border + shadow + radius-lg + a per-item dot pattern.
   Class names and markup are unchanged; only the visual weight is.
--------------------------------------------------------------- */
.service-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}
.service-item-card {
  position: relative;
  background: var(--color-surface-alt);
  border-top: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  transition: background var(--transition-base), transform var(--transition-base);
}
.service-item-card:hover,
.service-item-card:focus-within {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.service-items .service-item-card:nth-of-type(5n+1) { border-top-color: var(--accent-1); }
.service-items .service-item-card:nth-of-type(5n+2) { border-top-color: var(--accent-2); }
.service-items .service-item-card:nth-of-type(5n+3) { border-top-color: var(--accent-3); }
.service-items .service-item-card:nth-of-type(5n+4) { border-top-color: var(--accent-4); }
.service-items .service-item-card:nth-of-type(5n+5) { border-top-color: var(--accent-5); }
.service-item-card h3 {
  position: relative;
  font-size: var(--font-size-md);
  margin-bottom: var(--space-1);
}
.service-item-card p {
  position: relative;
  color: var(--color-body-text);
  font-size: var(--font-size-sm);
  margin: 0;
}
.service-item-card .outcome {
  position: relative;
  display: block;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-border);
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

/* A block on the surface-alt background needs white cards to keep
   the same card-on-surface contrast as the rest of the page. */
.service-block:nth-of-type(even) .service-item-card {
  background: var(--color-surface);
}

/* ---------------------------------------------------------------
   Hub-page category overview cards (a step up from the homepage's
   plainer service-card — includes a short capability list)
--------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.category-card {
  position: relative;
  border-top: 3px solid var(--accent-1);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  background: var(--color-surface-alt);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: background var(--transition-base), transform var(--transition-base);
}
.category-card:hover,
.category-card:focus-within {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.category-grid .category-card:nth-of-type(5n+1) { border-top-color: var(--accent-1); }
.category-grid .category-card:nth-of-type(5n+2) { border-top-color: var(--accent-2); }
.category-grid .category-card:nth-of-type(5n+3) { border-top-color: var(--accent-3); }
.category-grid .category-card:nth-of-type(5n+4) { border-top-color: var(--accent-4); }
.category-grid .category-card:nth-of-type(5n+5) { border-top-color: var(--accent-5); }
.category-card h2 {
  font-size: var(--font-size-lg);
  margin: 0;
}
.category-card h2 a {
  color: var(--color-navy);
}
.category-card > p {
  color: var(--color-body-text);
  font-size: var(--font-size-sm);
  margin: 0;
}
.category-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.category-card__list li {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  padding-left: 1rem;
  position: relative;
}
.category-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}
.category-card__link {
  margin-top: auto;
  font-weight: var(--font-weight-semibold);
  color: var(--color-blue-600);
  font-size: var(--font-size-sm);
}

/* ---------------------------------------------------------------
   Related-services cross-linking block
--------------------------------------------------------------- */
.service-crosslinks {
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.service-crosslinks h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}
.crosslink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.crosslink-card {
  display: block;
  border-left: 3px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  transition: border-color var(--transition-fast), background var(--transition-base);
}
.crosslink-card:hover,
.crosslink-card:focus-visible {
  border-left-color: var(--color-navy);
  background: var(--color-surface-alt);
  text-decoration: none;
}
.crosslink-card__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}
.crosslink-card__title {
  display: block;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  font-size: var(--font-size-md);
}

/* ---------------------------------------------------------------
   CTA band — a self-contained copy so Services pages never need to
   load home.css just for this one component (see file header).
--------------------------------------------------------------- */
.cta-band {
  background: var(--gradient-navy);
  color: #ffffff;
  text-align: center;
  padding-block: var(--space-6);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.cta-band__heading {
  color: #ffffff;
  font-size: var(--font-size-xl);
  margin: 0;
}
.cta-band__sub {
  color: var(--color-footer-text-muted);
  margin: 0 0 var(--space-1);
}
.cta-band__btn {
  margin-top: var(--space-1);
}

/* ---------------------------------------------------------------
   SHARED PAGE-FAMILY COMPONENTS
   ------------------------------------------------------------
   Master restructure pass: every inner page (Services hub, the 5
   category pages, ASP.NET Zero, ABP.io, both hire pages, the
   dedicated-team page, Industries, Collaborative Models, About,
   Contact) previously used the SAME two building blocks for every
   single section — a card grid (.service-items / .category-grid)
   and a CTA band. That's consistent, but monotonous: every page
   read as "hero, then boxes, then boxes again." These components
   add three more entries to the shared vocabulary — an editorial
   image/text row, a compact checklist, and a centered "why us"
   panel — so pages can vary their rhythm while still drawing from
   one system. Nothing here is page-specific; any page that already
   loads services.css can use these classes.
--------------------------------------------------------------- */

/* Small heading eyebrow + dot divider, used above a section heading
   wherever a plain .service-block__head isn't quite enough (an
   editorial row, a centered intro). */
.page-eyebrow {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue-600);
  margin: 0 0 var(--space-2);
}
.page-divider {
  width: 64px;
  height: 2px;
  margin: var(--space-2) 0 var(--space-3);
  background: var(--color-border);
  position: relative;
}
.page-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-orange);
  transform: translateY(-50%);
}
.page-divider--center {
  margin-inline: auto;
}
.page-divider--center::after {
  left: 50%;
  transform: translate(-50%, -50%);
}
.page-divider--light {
  background: rgba(255, 255, 255, 0.35);
}
.page-divider--light::after {
  background: #ffffff;
}
.page-head--center {
  max-width: 62ch;
  margin: 0 auto var(--space-5);
  text-align: center;
}
.page-head--center h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 0;
}
.page-head--center .page-divider {
  margin-inline: auto;
}
.page-lede {
  color: var(--color-muted);
  font-size: var(--font-size-md);
  margin: var(--space-2) 0 0;
}

/* Editorial image/text row ("Introduction" family). Reverses on
   alternating pages via the --reverse modifier so a run of pages
   doesn't all put the graphic on the same side. */
.intro-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
}
.intro-row--reverse {
  grid-template-columns: 1.15fr 0.85fr;
}
.intro-row--reverse .intro-row__visual {
  order: 2;
}
.intro-row__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-row__visual svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.intro-row__text p {
  color: var(--color-body-text);
  max-width: 58ch;
  margin: 0 0 var(--space-2);
}
.intro-row__text p:last-child {
  margin-bottom: 0;
}
.intro-row__text h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  max-width: 26ch;
}

/* Compact two-column checklist (value themes, engagement principles) */
.value-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-3);
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.value-checklist li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--font-size-sm);
  color: var(--color-body-text);
  font-weight: var(--font-weight-semibold);
}
.value-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(76, 175, 109, 0.14);
  color: var(--accent-1);
}
.value-check svg {
  width: 12px;
  height: 12px;
}

/* Four-column non-numeric value row (stat-row rhythm, no numbers) */
.value-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.value-row-item {
  text-align: center;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.value-row-item h3 {
  font-size: var(--font-size-base);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}
.value-row-item p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Centered "why us" / process panel — quote-style visual language,
   never presented as a customer testimonial (no name, avatar, or
   rating slot exists on this component). */
.why-panel-wrap {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
}
.why-panel {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}
.why-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #ffffff;
  margin-bottom: var(--space-3);
}
.why-panel__badge svg {
  width: 18px;
  height: 18px;
}
.why-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-4);
}
.why-panel__grid h3 {
  font-size: var(--font-size-base);
  color: var(--color-navy);
  margin: 0 0 0.3rem;
}
.why-panel__grid p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Section background helpers, used to vary the rhythm between
   sections without introducing a whole new component. */
.section-tint {
  background: linear-gradient(180deg, rgba(31, 123, 217, 0.06) 0%, rgba(47, 184, 172, 0.05) 100%);
  overflow: hidden;
}
.section-dark {
  background: var(--gradient-navy);
  position: relative;
  overflow: hidden;
}
.section-dark .page-head--center h2,
.section-dark h2 {
  color: #ffffff;
}
.section-dark .page-lede {
  color: var(--color-footer-text);
}

/* Generic full-width section wrapper — an explicit-background
   alternative to .service-block for pages that want deliberate
   control over which sections are white/tinted/dark, rather than
   the automatic even/odd alternation .service-block uses. */
.page-section {
  padding-block: var(--space-6);
}
.page-section--warm {
  background: var(--color-surface-alt);
}

/* Three plain open columns (no card/box treatment) — History /
   Mission / Promise, or any short editorial triad. */
.editorial-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5) var(--space-4);
}
.editorial-trio h3 {
  font-size: var(--font-size-base);
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}
.editorial-trio p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
  max-width: 38ch;
}

/* Contained contact CTA panel (light section variant of .cta-band,
   for when a page wants the compact "have a question?" strip rather
   than the full dark band). */
.contact-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}
.contact-cta-panel__title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--color-navy);
  margin: 0;
}
.contact-cta-panel__sub {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0.2rem 0 0;
}
.contact-cta-panel__btn {
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Three-column icon+text feature row (Path "Finders" family — open
   layout, no card boxes, controlled 60px icon squares). */
.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5) var(--space-4);
}
.feature-trio-item {
  text-align: center;
}
.feature-trio-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-5) 0%, var(--color-blue-600) 100%);
  margin-bottom: var(--space-2);
}
.feature-trio-item__icon svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}
.feature-trio-item h3 {
  font-size: var(--font-size-base);
  margin: 0 0 0.4rem;
}
.feature-trio-item p {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  margin: 0;
  max-width: 32ch;
  margin-inline: auto;
}

/* Shared decorative shape tokens for .intro-row__visual illustrations
   — plain geometry only (matches the circle/diamond accents already
   used on every .service-hero), never a stock illustration. */
.ill-card {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 1.5;
}
.ill-card--tint {
  fill: rgba(31, 123, 217, 0.08);
  stroke: rgba(31, 123, 217, 0.25);
}
.ill-line {
  stroke: var(--color-border);
  stroke-width: 6;
  stroke-linecap: round;
}
.ill-dot { fill: var(--color-orange); }
.ill-dot--blue { fill: var(--color-blue); }
.ill-dot--teal { fill: var(--accent-5); }
.ill-ring {
  fill: none;
  stroke: rgba(0, 50, 102, 0.14);
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------
   Responsive — shared page-family components
--------------------------------------------------------------- */
@media (max-width: 1023px) {
  .intro-row,
  .intro-row--reverse {
    grid-template-columns: 1fr;
  }
  .intro-row__visual {
    order: -1;
  }
  .intro-row__visual svg {
    max-width: 260px;
  }
  .feature-trio {
    grid-template-columns: repeat(3, 1fr);
  }
  .editorial-trio {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4) var(--space-3);
  }
}
@media (max-width: 767px) {
  .value-checklist {
    grid-template-columns: 1fr;
  }
  .value-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-panel__grid {
    grid-template-columns: 1fr;
  }
  .feature-trio {
    grid-template-columns: 1fr;
  }
  .editorial-trio {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .contact-cta-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
@media (max-width: 479px) {
  .value-row {
    grid-template-columns: 1fr;
  }
  .why-panel {
    padding: var(--space-4);
  }
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 599px) {
  .service-hero h1 {
    max-width: none;
  }
}
