/* ─── /infotech standalone page: service cards with feature list ───
   Loaded ONLY on the /infotech page (body.page-infotech, which sits on the
   brand-navy #0b1220 background). Kept separate from main.css so the
   homepage infotech section (accordion) never inherits these rules. */

/* Scope the navy-friendly brand token to this page only (never global). */
.page-infotech {
  --brand-white: #fff;
  --feature-accent: var(--gold);
  --feature-line: rgba(147, 197, 253, 0.16);
  --feature-line-strong: rgba(147, 197, 253, 0.35);
  --feature-ink: #ffffff;
  --feature-muted: rgba(255, 255, 255, 0.78);
  --feature-muted-soft: rgba(255, 255, 255, 0.6);
}

/* ─── Card scaffolding ─── */
.page-infotech .pillar-card--with-image {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
}

.page-infotech .pillar-card--with-image:hover {
  border-color: rgba(21, 70, 160, 0.45);
}

/* Card resting elevation */
.page-infotech .lift {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.page-infotech .lift:hover {
  transform: translateY(-4px);
}

/* ─── Card body: breathing room ─── */
.page-infotech .pillar-card--with-image .pillar-card__body {
  padding: clamp(1.5rem, 2vw, 1.75rem);
}

/* ─── Card header: clear hierarchy ─── */
.page-infotech .pillar-card--with-image .pillar-num {
  margin-bottom: 0.5rem;
  color: var(--feature-accent);
}

.page-infotech .pillar-card--with-image h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--feature-ink);
  margin-bottom: 0.5rem;
}

.page-infotech .pillar-card--with-image > .pillar-card__body > p {
  font-size: 0.9rem;
  color: var(--feature-muted-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Hairline separator above the feature list */
.page-infotech .pillar-features {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--feature-line);
  list-style: none;
}

/* ─── Feature row (single line): [check] name — desc ─── */
.page-infotech .pillar-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.6rem;
  min-width: 0;
  line-height: 1.55;
}
.page-infotech .pillar-feature > svg {
  color: var(--feature-accent);
  position: relative;
  top: 0.14em;
}
.page-infotech .pillar-feature__text {
  display: inline;
  min-width: 0;
}
.page-infotech .pillar-feature__title {
  font-weight: 600;
  color: var(--feature-ink);
}
.page-infotech .pillar-feature__sep {
  color: var(--feature-muted-soft);
  white-space: pre;
}
.page-infotech .pillar-feature__desc {
  color: var(--feature-muted);
  overflow-wrap: break-word;
}

/* ─── "Show all" toggle (mobile only, JS-gated) ─── */
.page-infotech .pillar-features-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  background: var(--feature-line-strong);
  border: 1px solid var(--feature-line-strong);
  border-radius: 999px;
  color: var(--feature-ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease;
}
.page-infotech .pillar-features-toggle:hover {
  background: rgba(147, 197, 253, 0.45);
}
.page-infotech .pillar-features-toggle svg {
  color: var(--feature-accent);
  transition: transform 0.3s var(--ease-out);
}
.page-infotech .pillar-features.is-expanded .pillar-features-toggle svg {
  transform: rotate(180deg);
}

/* ─── Mobile (≤ 680px): clamp long lists behind a "Show all" toggle ─── */
@media (max-width: 680px) {
  .page-infotech .pillar-card--with-image .pillar-card__body {
    padding: 1.25rem;
  }

  .page-infotech .pillar-card--with-image h3 {
    font-size: 1.2rem;
  }
  .page-infotech .pillar-card--with-image > .pillar-card__body > p {
    font-size: 0.9rem;
  }

  .page-infotech .pillar-feature {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.12rem 0;
    min-height: 44px;
    align-items: center;
  }
  .page-infotech .pillar-feature__title {
    white-space: normal;
  }
  .page-infotech .pillar-feature__desc {
    font-size: 0.88rem;
  }

  /* Clamp: JS-gated, shows first 4 rows + fade; reveal on toggle.
     Fail-open: only hides extras when the js-features-clamp class is added
     by JS, so no-JS visitors still see every solution. */
  .page-infotech .pillar-features.js-features-clamp:not(.is-expanded) {
    max-height: 11.6rem;
    overflow: hidden;
    position: relative;
  }
  .page-infotech .pillar-features.js-features-clamp:not(.is-expanded)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.2rem;
    background: linear-gradient(180deg, transparent, var(--dark));
    pointer-events: none;
  }
  .page-infotech .pillar-features.js-features-clamp > .pillar-feature:nth-child(n + 5) {
    display: none;
  }
  .page-infotech .pillar-features.js-features-clamp.is-expanded > .pillar-feature {
    display: grid;
  }
  .page-infotech .pillar-features.js-features-clamp.is-expanded {
    max-height: none;
    overflow: visible;
  }
  .page-infotech .pillar-features.js-features-clamp + .pillar-features-toggle {
    display: inline-flex;
  }
}
