/* =========================================================
   JD CAPITAL GROUP — SERVICES PAGE
   Capability explorer (moved here from the Clients page), How We Work
   steps, and a closing call to action. The hero reuses css/about.css.
   ========================================================= */

/* ---------- Capabilities section (the explorer below) ---------- */
.support-section {
  position: relative;
  overflow: hidden;
  background: var(--wash);
  padding: 110px 0;
  text-align: center;
}
.support-section .container { position: relative; z-index: 1; }

.support-eyebrow {
  color: var(--gold-ink);
  margin: 0 0 28px;
}

.support-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  color: var(--navy);
  max-width: 760px;
  margin: 0 auto 56px;
}
/* ---------- Capability explorer ----------
   One set of markup, two presentations:
   - Desktop (>=1025px): the nine names are a list on the left; the selected
     one's explanation fills a panel on the right. Items use display:contents
     so every name lands in column 1 and every panel shares the column-2 cell
     (only the selected one is shown).
   - Narrower screens: each item is a tap-to-open card (accordion).
   Behavior lives in js/clients.js. */
.support-grid { text-align: left; }

.support-toggle {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.support-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.support-item h3 { margin: 0; font: inherit; }
.support-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--navy);
}
.support-short { font-size: 14.5px; line-height: 1.6; color: var(--gray-mid); }

.support-detail-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 12px;
}
.support-detail-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 10px;
}
.support-detail-short {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--gold-ink);
  margin: 0 0 22px;
}
.support-detail-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
  margin: 0 0 30px;
}
.support-detail { animation: support-reveal 0.3s ease; }
@keyframes support-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---- Desktop: list + panel ---- */
@media (min-width: 1025px) {
  .support-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    grid-auto-rows: auto;
    column-gap: 40px;
    align-items: start;
  }
  .support-item { display: contents; }
  .support-item h3 { grid-column: 1; }
  .support-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--gray-line);
    transition: background var(--transition), border-color var(--transition);
  }
  .support-item:first-child .support-toggle { border-top: 1px solid var(--gray-line); }
  .support-toggle .support-name { font-size: 17px; color: var(--gray-mid); transition: color var(--transition); }
  .support-toggle .support-short { display: none; }
  .support-toggle:hover .support-name { color: var(--navy); }
  .support-item.is-open .support-toggle {
    background: var(--white);
    border-left-color: var(--gold);
  }
  .support-item.is-open .support-toggle .support-name { color: var(--navy); }
  /* small arrow pointing at the panel */
  .support-icon {
    flex: 0 0 auto;
    width: 8px; height: 8px;
    border-top: 1.5px solid var(--gold);
    border-right: 1.5px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition);
  }
  .support-item.is-open .support-icon { opacity: 1; }

  .support-detail {
    grid-column: 2;
    grid-row: 1 / span 9;
    align-self: stretch;
    background: var(--white);
    border: 1px solid var(--gray-line);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 48px 52px;
    box-shadow: 0 20px 50px rgba(24, 22, 20, 0.08);
  }
}

/* ---- Tablet / phone: tap-to-open cards ---- */
@media (max-width: 1024px) {
  .support-grid { display: flex; flex-direction: column; gap: 14px; }
  .support-item {
    background: var(--white);
    border: 1px solid var(--gray-line);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(24, 22, 20, 0.05);
  }
  .support-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    row-gap: 6px;
    padding: 22px 22px 20px;
  }
  .support-name { grid-column: 1; }
  .support-short { grid-column: 1; }
  .support-icon {
    grid-column: 2; grid-row: 1 / span 2;
    position: relative;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(182, 144, 63, 0.5);
    transition: background var(--transition), border-color var(--transition);
  }
  .support-icon::before, .support-icon::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 10px; height: 1.5px;
    background: var(--gold);
    transform: translate(-50%, -50%);
    transition: transform var(--transition), background var(--transition);
  }
  .support-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
  .support-item.is-open .support-icon { background: var(--gold); border-color: var(--gold); }
  .support-item.is-open .support-icon::before,
  .support-item.is-open .support-icon::after { background: var(--white); }
  .support-item.is-open .support-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
  .support-detail { padding: 0 22px 24px; }
  /* the card header already shows the name and short line */
  .support-detail-eyebrow, .support-detail-title, .support-detail-short { display: none; }
  .support-detail-body { font-size: 15px; padding-top: 16px; border-top: 1px solid var(--gray-line); margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .support-detail { animation: none; }
}

@media (max-width: 768px) {
  .support-section { padding: 88px 0; }
  .support-title { margin-bottom: 36px; }
}

/* ---------- How We Work: a connected timeline (not cards) ----------
   Gold numbered circles joined by a thin line; horizontal on desktop,
   vertical with the line down the left on narrow screens. */
.process-section { background: var(--wash); }
.process-head { max-width: 680px; margin-bottom: 48px; }
.process-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
/* the connecting line, running between the first and last circle centers */
.process-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(182, 144, 63, 0.35));
}
.process-step { position: relative; text-align: center; padding: 0 6px; }
.process-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  box-shadow: 0 0 0 6px var(--white), 0 10px 24px rgba(182, 144, 63, 0.35);
  transition: transform var(--transition), background var(--transition);
}
.process-step:hover .process-num { transform: scale(1.1); background: var(--navy); }
.process-step h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px;
}
.process-step p { font-size: 14.5px; line-height: 1.65; color: var(--gray-mid); margin: 0 auto; max-width: 250px; }
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; gap: 30px; }
  .process-steps::before { top: 30px; bottom: 30px; left: 29px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--gold), rgba(182, 144, 63, 0.35)); }
  .process-step { text-align: left; padding: 4px 0 0 88px; min-height: 60px; }
  .process-num { position: absolute; left: 0; top: 0; margin: 0; }
  .process-step p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process-num, .process-step:hover .process-num { transition: none; transform: none; }
}

/* ---------- Closing call to action ---------- */
.services-cta { background: var(--wash-gray); text-align: center; }
.services-cta .section-title { margin-bottom: 12px; }
.services-cta .lead-text { margin: 0 auto 28px; }
.services-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- "See it in action" link inside each capability ---------- */
.support-proof {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: -6px 0 26px;
  transition: color var(--transition);
}
.support-proof-label { color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; }
.support-proof:hover { color: var(--gold); }
@media (max-width: 1024px) { .support-proof { margin: -4px 0 18px; font-size: 13.5px; } }

/* ---------- Who We Help: photo cards ----------
   Each card uses its matching project photo (file as-is) as a background,
   darkened toward the bottom so the white text reads. */
.industries-section { background: var(--wash-gray); }
.industry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.industry-card {
  position: relative;
  display: flex;
  min-height: 380px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 16px 40px rgba(24, 22, 20, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}
.industry-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0) 30%, rgba(13, 11, 10, 0.55) 60%, rgba(13, 11, 10, 0.9) 100%);
}
.industry-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 28px 26px 24px;
}
.industry-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
  margin: 0 0 8px;
}
.industry-card p { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); margin: 0 0 16px; }
.industry-card span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(24, 22, 20, 0.22); }
.industry-card:hover .industry-card-img { transform: scale(1.06); }
/* Four industries: four across on wide screens, 2x2 on mid widths. */
.industry-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1180px) { .industry-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .industry-cards { grid-template-columns: 1fr; }
  .industry-card { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .industry-card, .industry-card:hover, .industry-card-img, .industry-card:hover .industry-card-img { transition: none; transform: none; }
}

/* Section shades alternate down the page: results (light), fit (gray),
   capabilities (light), who we help (gray), how we work (light),
   get started (gray). */

/* ---------- Results strip (reuses the homepage .why-stat cards) ---------- */
.services-proof { background: var(--wash); padding: 56px 0; }
.services-stats { grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; }
/* five across, so the figures run a little smaller than the homepage's */
.services-stats .why-stat { padding: 22px 18px 20px; }
.services-stats .why-stat-value { font-size: clamp(26px, 2.3vw, 34px); }
.services-stats .why-stat-label { font-size: 13px; }
@media (max-width: 1100px) { .services-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .services-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-stats { grid-template-columns: 1fr; } }

/* ---------- Is this a good fit? ---------- */
.fit-section { background: var(--wash-gray); }
.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.fit-intro .section-title { margin-bottom: 22px; }
.fit-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(182, 144, 63, 0.4);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.fit-link:hover { color: var(--navy); border-color: var(--navy); }
.fit-list {
  list-style: none;
  margin: 0;
  padding: 10px 28px;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(24, 22, 20, 0.06);
}
.fit-list li {
  position: relative;
  padding: 16px 0 16px 40px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
}
.fit-list li + li { border-top: 1px solid var(--gray-line); }
/* gold check in a circle */
.fit-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
}
.fit-list li::after {
  content: "";
  position: absolute;
  left: 8px; top: 21px;
  width: 6px; height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (max-width: 1024px) {
  .fit-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .fit-list { padding: 6px 18px; }
  .fit-list li { font-size: 15px; }
}
