/* ==========================================================================
 * SUBPAGES — CATEGORY-SPECIFIC VISUAL VARIANTS
 * These layer on top of subpages.css to give each page family (Industry /
 * Hire / Engagement / Case) its own visual identity. Body class is added by
 * zikosoft_category_body_class() in functions.php from the page slug prefix.
 * ========================================================================== */

/* ==========================================================================
 * INDUSTRY PAGES — .is-industry-page
 * Editorial, sector-forward. Left-anchored hero with a dark accent block
 * behind the visual. Feature grid uses top-border accent bars. Use-cases
 * become numbered problem chips. Softer paper-grain background.
 * ========================================================================== */

.is-industry-page .zk-sub-hero {
  background: linear-gradient(180deg, #fdfaf7 0%, #f5ebde 100%);
}
.is-industry-page .zk-sub-hero::before {
  right: auto;
  left: -140px;
  top: 40%;
  transform: translateY(-40%);
  background: radial-gradient(closest-side, rgba(28, 23, 19, .08), transparent);
}
.is-industry-page .zk-sub-hero__eyebrow {
  background: #1c1713;
  border-color: #1c1713;
  color: #f5ede6;
}
.is-industry-page .zk-sub-hero__title {
  font-size: 56px;
  letter-spacing: -.8px;
}
.is-industry-page .zk-sub-hero__visual {
  background: linear-gradient(160deg, #1c1713, #34251b);
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(28, 23, 19, .35);
}
.is-industry-page .zk-sub-hero__visual svg [stroke="#b3765c"] {
  stroke: #eec9a9;
}
.is-industry-page .zk-sub-hero__visual svg [stroke="#c58b62"] {
  stroke: #eec9a9;
}

/* Feature grid — top accent bar instead of icon-in-circle */
.is-industry-page .zk-featgrid {
  background: #ffffff;
}
.is-industry-page .zk-featgrid__card {
  background: #ffffff;
  border: 1px solid #ede4dc;
  border-top: 3px solid #c58b62;
  border-radius: 10px;
  padding: 32px 28px 26px;
}
.is-industry-page .zk-featgrid__icon {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(160deg, #faf1e8, #f2e1cf);
  color: #b3765c;
  margin-bottom: 18px;
}

/* Use-cases repurposed as "Challenges" — numbered chips, no arrow badge */
.is-industry-page .zk-usecases {
  background: #f7f1ed;
}
.is-industry-page .zk-usecases__item {
  background: #ffffff;
  border: 1px solid #ede4dc;
  border-left: 3px solid #1c1713;
  border-radius: 0 12px 12px 0;
  padding: 26px 26px 24px;
  counter-increment: challenge;
  position: relative;
}
.is-industry-page .zk-usecases__arrow {
  background: transparent;
  color: #c58b62;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
  width: auto;
  height: auto;
  margin-bottom: 6px;
}
.is-industry-page .zk-usecases__arrow::before {
  content: "CHALLENGE ";
  letter-spacing: .14em;
}
.is-industry-page .zk-usecases__arrow::after {
  content: "";
}

/* Process — numbered horizontal "sector solutions" strip */
.is-industry-page .zk-process {
  background: #ffffff;
}
.is-industry-page .zk-process__step {
  background: linear-gradient(160deg, #faf7f5, #f7f3f0);
  border: none;
  padding: 34px 28px;
}
.is-industry-page .zk-process__num {
  background: #1c1713;
  color: #eec9a9;
}

/* Tech-stack pills — dark chips */
.is-industry-page .zk-stack {
  background: #f7f1ed;
}
.is-industry-page .zk-stack__pill {
  background: #ffffff;
  border-color: #ede4dc;
  color: #1c1713;
}

/* ==========================================================================
 * HIRE PAGES — .is-hire-page
 * Human-forward. Bold "Hire in 48 hours" hero, engineer-avatar strip,
 * expertise cards presented as checklists, hiring-process as milestone
 * timeline. Slightly cooler warm palette.
 * ========================================================================== */

.is-hire-page .zk-sub-hero {
  background: linear-gradient(180deg, #fbf9f8 0%, #efe4d8 100%);
  padding: 72px 40px 84px;
}
.is-hire-page .zk-sub-hero::before {
  right: -100px;
  top: -60px;
  background: radial-gradient(closest-side, rgba(197, 139, 98, .32), transparent);
}
.is-hire-page .zk-sub-hero__eyebrow::before {
  content: "▸ ";
  color: #c58b62;
}
.is-hire-page .zk-sub-hero__title {
  font-size: 60px;
  letter-spacing: -.9px;
}
.is-hire-page .zk-sub-hero__lead {
  font-size: 19px;
}
.is-hire-page .zk-sub-hero__cta-primary {
  background: linear-gradient(135deg, #c68a5f, #ac694d);
  box-shadow: 0 14px 34px rgba(197, 139, 98, .38);
}
.is-hire-page .zk-sub-hero__visual {
  background: linear-gradient(160deg, #ffffff, #faf1e8);
  border: 1px solid #ede4dc;
}

/* Small floating "48h" badge on the hero visual */
.is-hire-page .zk-sub-hero__visual::after {
  content: "Hire in 48h";
  position: absolute;
  top: 18px;
  right: 18px;
  background: #1c1713;
  color: #f5ede6;
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 8px 14px;
  border-radius: 20px;
  z-index: 2;
}

/* Feature grid — expertise cards with a leading dot instead of icon-ring */
.is-hire-page .zk-featgrid {
  background: linear-gradient(180deg, #ffffff, #fbf6ef);
}
.is-hire-page .zk-featgrid__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.is-hire-page .zk-featgrid__card {
  background: #ffffff;
  border: 1px solid #ede4dc;
  border-radius: 14px;
  padding: 28px 26px 26px;
  position: relative;
}
.is-hire-page .zk-featgrid__icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #1c1713;
  color: #eec9a9;
  margin-bottom: 16px;
}
.is-hire-page .zk-featgrid__card-title {
  font-size: 18px;
  font-weight: 700;
}

/* Tech-stack as segmented capabilities marquee */
.is-hire-page .zk-stack {
  background: #ffffff;
}
.is-hire-page .zk-stack__pill {
  background: #ffffff;
  border: 1.5px solid #ede4dc;
  color: #1c1713;
  font-weight: 700;
}
.is-hire-page .zk-stack__pill:hover {
  background: #1c1713;
  color: #eec9a9;
  border-color: #1c1713;
}

/* Use-cases — "What they build" — bold arrows */
.is-hire-page .zk-usecases {
  background: linear-gradient(180deg, #fbf9f8, #f7f1ed);
}
.is-hire-page .zk-usecases__arrow {
  background: #1c1713;
  color: #eec9a9;
}

/* Process — hiring timeline */
.is-hire-page .zk-process {
  background: #ffffff;
}
.is-hire-page .zk-process__step {
  background: #1c1713;
  border: none;
  color: #f0e4d7;
}
.is-hire-page .zk-process__num {
  background: rgba(255, 255, 255, .1);
  color: #eec9a9;
}
.is-hire-page .zk-process__title {
  color: #ffffff;
}
.is-hire-page .zk-process__desc {
  color: #cbc1b9;
}

/* ==========================================================================
 * ENGAGEMENT PAGES — .is-engagement-page
 * Calm, contract-like. Cool neutral. Feature grid becomes an included-list
 * with checkmarks. Process becomes a milestone bar. Use-cases become
 * "when to choose this" chips.
 * ========================================================================== */

.is-engagement-page .zk-sub-hero {
  background: linear-gradient(180deg, #fbf9f8 0%, #f0eae4 100%);
}
.is-engagement-page .zk-sub-hero::before {
  display: none;
}
.is-engagement-page .zk-sub-hero__eyebrow {
  background: transparent;
  border: 1px solid #d9cec3;
  color: #736d69;
}
.is-engagement-page .zk-sub-hero__title {
  font-size: 50px;
}
.is-engagement-page .zk-sub-hero__visual {
  background: #ffffff;
  border: 1px solid #ede4dc;
  box-shadow: 0 14px 36px rgba(28, 23, 19, .08);
}

/* Feature grid — "what's included" checklist styling */
.is-engagement-page .zk-featgrid {
  background: #ffffff;
}
.is-engagement-page .zk-featgrid__grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}
.is-engagement-page .zk-featgrid__card {
  background: #ffffff;
  border: 1px solid #ede4dc;
  border-radius: 14px;
  padding: 26px 30px 24px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 6px;
  align-items: start;
}
.is-engagement-page .zk-featgrid__icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #c68a5f, #ac694d);
  color: #ffffff;
  margin-bottom: 0;
  grid-row: 1 / span 2;
  align-self: start;
}
.is-engagement-page .zk-featgrid__icon svg {
  filter: brightness(0) invert(1);
}
.is-engagement-page .zk-featgrid__card-title {
  grid-column: 2;
  grid-row: 1;
  margin-top: 6px;
}
.is-engagement-page .zk-featgrid__card-desc {
  grid-column: 2;
  grid-row: 2;
}

/* Process — clean milestone bar */
.is-engagement-page .zk-process {
  background: linear-gradient(180deg, #fbf9f8, #f7f1ed);
}
.is-engagement-page .zk-process__step {
  background: #ffffff;
  border-color: #ede4dc;
  border-left: 3px solid #c58b62;
  border-radius: 6px 14px 14px 6px;
}
.is-engagement-page .zk-process__num {
  background: transparent;
  color: #b3765c;
  padding: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.5px;
}

/* Use-cases — "when to use" pill grid */
.is-engagement-page .zk-usecases {
  background: #ffffff;
}
.is-engagement-page .zk-usecases__item {
  background: linear-gradient(160deg, #faf7f5, #f7f3f0);
  border: none;
  border-radius: 14px;
}
.is-engagement-page .zk-usecases__arrow {
  background: transparent;
  color: #b3765c;
  font-weight: 700;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  font-size: 0;
  padding: 0;
  margin-bottom: 12px;
}
.is-engagement-page .zk-usecases__arrow::before {
  content: "▸ WHEN TO USE";
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}
.is-engagement-page .zk-usecases__arrow::after {
  content: none;
}

/* Tech-stack — compact */
.is-engagement-page .zk-stack__pill {
  padding: 9px 16px;
  font-size: 13.5px;
}

/* ==========================================================================
 * CASE-STUDY DETAIL PAGES — .is-case-page
 * Editorial magazine feel. Big hero image. Section headers get numeric
 * chapter labels. Benefits ("outcomes") kept dark and prominent.
 * ========================================================================== */

.is-case-page .zk-sub-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7f1ed 100%);
  padding: 76px 40px 100px;
}
.is-case-page .zk-sub-hero__inner {
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}
.is-case-page .zk-sub-hero__eyebrow {
  background: transparent;
  border: none;
  padding: 0;
  color: #b3765c;
  font-size: 13px;
  letter-spacing: .22em;
}
.is-case-page .zk-sub-hero__title {
  font-size: 58px;
  line-height: 1.05;
}
.is-case-page .zk-sub-hero__visual {
  aspect-ratio: 4 / 5;
  max-width: 520px;
  padding: 0;
  background: transparent;
  box-shadow: 0 30px 80px rgba(28, 23, 19, .22);
}
.is-case-page .zk-sub-hero__visual svg {
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Feature-grid: "What we built" — richer cards, larger padding */
.is-case-page .zk-featgrid__head::before {
  content: "01 —";
  display: block;
  font-family: 'Space Mono', ui-monospace, monospace;
  color: #b3765c;
  font-size: 13px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.is-case-page .zk-process__head::before {
  content: "02 —";
  display: block;
  font-family: 'Space Mono', ui-monospace, monospace;
  color: #b3765c;
  font-size: 13px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.is-case-page .zk-stack__head::before {
  content: "03 —";
  display: block;
  font-family: 'Space Mono', ui-monospace, monospace;
  color: #b3765c;
  font-size: 13px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.is-case-page .zk-usecases__head::before {
  content: "04 —";
  display: block;
  font-family: 'Space Mono', ui-monospace, monospace;
  color: #b3765c;
  font-size: 13px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.is-case-page .zk-benefits__head::before {
  content: "05 — OUTCOMES";
  display: block;
  font-family: 'Space Mono', ui-monospace, monospace;
  color: #eec9a9;
  font-size: 13px;
  letter-spacing: .14em;
  margin-bottom: 8px;
}

/* Benefits (outcomes) — highlighted large numeric cards */
.is-case-page .zk-benefits__card {
  min-height: 240px;
}
.is-case-page .zk-benefits__num {
  font-size: 44px;
  color: #eec9a9;
  letter-spacing: -.8px;
  line-height: 1;
  margin-bottom: 20px;
}

/* Feature-grid card variant */
.is-case-page .zk-featgrid__card {
  padding: 32px 30px 28px;
  border-radius: 16px;
}

/* ==========================================================================
 * RESPONSIVE — variant tweaks
 * ========================================================================== */
@media (max-width: 900px) {
  .is-industry-page .zk-sub-hero__title,
  .is-hire-page .zk-sub-hero__title,
  .is-engagement-page .zk-sub-hero__title,
  .is-case-page .zk-sub-hero__title {
    font-size: 42px;
  }
  .is-engagement-page .zk-featgrid__grid {
    grid-template-columns: 1fr;
  }
  .is-hire-page .zk-sub-hero__visual::after {
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 6px 10px;
  }
}
@media (max-width: 640px) {
  .is-industry-page .zk-sub-hero__title,
  .is-hire-page .zk-sub-hero__title,
  .is-engagement-page .zk-sub-hero__title,
  .is-case-page .zk-sub-hero__title {
    font-size: 30px;
  }
  .is-engagement-page .zk-featgrid__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .is-engagement-page .zk-featgrid__icon {
    grid-row: 1;
    grid-column: 1;
  }
  .is-engagement-page .zk-featgrid__card-title {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }
  .is-engagement-page .zk-featgrid__card-desc {
    grid-column: 1;
    grid-row: 3;
  }
}
