/* Brand: wecarechirotx.fit — SERVICES only (wec40) */

.wec40-services {
  flex: 1 1 auto;
}

.wec40-svc-kicker {
  margin: 0;
  color: var(--wec40-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wec40-svc-lead,
.wec40-svc-head > p,
.wec40-svc-note-copy > p,
.wec40-svc-acc .service-item-body p,
.wec40-svc-acc .service-item > p {
  color: var(--wec40-muted);
  text-wrap: pretty;
}

.wec40-cta--ghost {
  background: transparent;
  border-color: var(--wec40-line);
  color: var(--wec40-ink);
}

.wec40-cta--ghost:hover {
  background: color-mix(in srgb, var(--wec40-surface) 72%, var(--wec40-accent));
  color: var(--wec40-ink);
}

/* —— Intro: access framing + still —— */
.wec40-svc-intro {
  padding: clamp(1.75rem, 4.5vw, 3rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 65% 50% at 88% 12%, color-mix(in srgb, var(--wec40-accent) 12%, transparent), transparent 68%),
    var(--wec40-bg);
}

.wec40-svc-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
}

.wec40-svc-intro-copy {
  display: grid;
  gap: 0.95rem;
  align-content: center;
  text-align: left;
}

.wec40-svc-intro-copy h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.1;
  max-width: 16ch;
}

.wec40-svc-intro-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.wec40-svc-intro-visual {
  margin: 0;
  border: 1px solid var(--wec40-line);
  overflow: hidden;
  background: var(--wec40-surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.wec40-svc-intro-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

/* —— Numbered accordion —— */
.wec40-svc-sec {
  padding: clamp(2.5rem, 5.5vw, 4.25rem) 0;
  border-top: 1px solid var(--wec40-line);
}

.wec40-svc-head {
  display: grid;
  gap: 0.7rem;
  max-width: 38rem;
  margin: 0 0 1.75rem;
  text-align: left;
}

.wec40-svc-head h2 {
  font-size: clamp(1.55rem, 2.9vw, 2.25rem);
  line-height: 1.15;
}

.wec40-svc-acc {
  display: grid;
  gap: 0.55rem;
  max-width: 44rem;
}

.wec40-svc-acc .service-item {
  margin: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 0;
  border: 1px solid var(--wec40-line);
  background: var(--wec40-surface);
  text-align: left;
}

.wec40-svc-acc .service-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem 1.05rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.wec40-svc-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
  text-align: left;
}

.wec40-svc-n {
  color: var(--wec40-accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.wec40-svc-acc .service-item:not(.is-open) > p {
  display: none;
}

/* Before DNA wraps siblings; after wrap, DNA max-height + open class */
.wec40-svc-acc .service-item.is-open > p {
  display: block;
  margin: 0;
  padding: 0.85rem 1.05rem 1.05rem;
  border-top: 1px solid var(--wec40-line);
  font-size: 0.94rem;
}

.wec40-svc-acc .service-item-body p {
  margin: 0;
  font-size: 0.94rem;
}

.dna-svc-accordion .wec40-svc-acc .is-open .service-item-body {
  max-height: none;
  overflow: visible;
  padding: 0.85rem 1.05rem 1.05rem;
  border-top: 1px solid var(--wec40-line);
}

/* —— Closing note —— */
.wec40-svc-note {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--wec40-surface) 55%, transparent), transparent 100%),
    var(--wec40-bg);
}

.wec40-svc-note-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.25rem 2rem;
  align-items: end;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--wec40-line);
  background: var(--wec40-surface);
  text-align: left;
}

.wec40-svc-note-copy {
  display: grid;
  gap: 0.55rem;
}

.wec40-svc-note-copy h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.2;
}

.wec40-svc-note-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .wec40-svc-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wec40-svc-intro-copy h1 {
    max-width: 18ch;
  }

  .wec40-svc-intro-visual img {
    aspect-ratio: 16 / 10;
  }

  .wec40-svc-note-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wec40-svc-note-acts {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .wec40-svc-intro-copy h1 {
    max-width: none;
    font-size: clamp(1.65rem, 7.5vw, 2.1rem);
  }

  .wec40-svc-intro-acts,
  .wec40-svc-note-acts {
    flex-direction: column;
    align-items: stretch;
  }

  .wec40-svc-intro-acts .wec40-cta,
  .wec40-svc-note-acts .wec40-cta {
    width: 100%;
  }

  .wec40-svc-acc .service-item h3 {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wec40-services * {
    transition: none !important;
  }
}
