.services-section,
.faq-section {
  padding-block: var(--section-gap, clamp(72px, 8vw, 120px));
  scroll-margin-top: 3rem;
}

.services-section {
  background: var(--bg);
  color: var(--ink);
}

.faq-section {
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.services-shell,
.faq-shell {
  max-width: 1440px;
  margin-inline: auto;
}

.services-header,
.faq-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.services-header .section-heading,
.faq-header .section-heading {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.services-header .section-intro,
.faq-header .section-intro {
  max-width: 58ch;
  margin: 12px 0 0;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.services-demo-note,
.faq-demo-note {
  max-width: 36ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Services Interactive Explorer */
.service-explorer {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.85fr);
  align-items: start;
  gap: clamp(24px, 3.5vw, 48px);
}

.service-index-heading {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.service-tab {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transition: all 180ms var(--ease);
}

.service-tab:hover {
  background: var(--surface-hover);
  color: var(--ink);
  transform: translateX(2px);
}

.service-tab.is-selected {
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.service-tab-arrow {
  flex: none;
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.service-tab.is-selected .service-tab-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Service Detail Presentation Card */
.service-panel {
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.service-detail-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.service-detail-description {
  max-width: 68ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.service-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.service-detail-columns h4 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.service-detail-examples ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.service-detail-examples li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.service-detail-examples li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: -2px;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
}

.service-detail-practical {
  display: grid;
  gap: 22px;
}

.service-detail-guidance p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.service-detail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.service-detail-action p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Service Disclosures (Mobile / No-JS fallback) */
.services-mobile-wrap {
  display: block;
}

.services-mobile-chips {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-mobile-chips::-webkit-scrollbar {
  display: none !important;
}

.services-mobile-chip {
  flex: none;
  scroll-snap-align: start;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.services-mobile-chip:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.services-mobile-chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}

.service-disclosures {
  display: grid;
  gap: 12px;
}

.service-disclosure {
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.service-disclosure[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.service-disclosure-summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.service-disclosure-summary::-webkit-details-marker {
  display: none;
}

.service-disclosure-icon,
.faq-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.service-disclosure-icon::before,
.service-disclosure-icon::after,
.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
  border-radius: 1px;
}

.service-disclosure-icon::after,
.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 200ms var(--ease);
}

.service-disclosure[open] .service-disclosure-icon::after,
.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.service-disclosure .service-detail-content {
  padding: 8px 18px 20px;
}

/* FAQ Section & Accordions */
.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}

.faq-group h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  min-width: 0;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  overflow: hidden;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-answer p {
  max-width: 64ch;
  margin: 0;
}

.faq-inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(32px, 4.5vw, 56px);
  padding: 20px 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.faq-contact p {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* Focus States */
.service-tab:focus-visible,
.service-panel:focus-visible,
.service-disclosure-summary:focus-visible,
.faq-question:focus-visible,
.service-detail-action .button:focus-visible,
.faq-contact .button:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

/* Desktop vs Mobile Toggle */
.services-section .service-tabs,
.services-section .service-panel {
  display: none;
}

.services-section[data-service-ready="true"] .services-mobile-wrap {
  display: none;
}

.services-section[data-service-ready="true"] .service-tabs,
.services-section[data-service-ready="true"] .service-panel {
  display: flex;
}

.services-section[data-service-ready="true"] .service-panel {
  display: block;
}

@media (min-width: 900px) {
  .services-section:not([data-service-ready="true"]) .service-explorer {
    display: none;
  }
}

@media (max-width: 899px) {
  .services-section,
  .faq-section {
    padding-block: clamp(36px, 6vw, 64px);
  }

  .services-header,
  .faq-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
  }

  .service-explorer {
    display: none !important;
  }

  .services-section[data-service-ready="true"] .services-mobile-wrap {
    display: block !important;
  }

  .services-section[data-service-ready="true"] .service-disclosures {
    display: grid !important;
  }

  .faq-groups {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-detail-columns {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
  }

  .service-detail-action,
  .faq-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .service-detail-action .button,
  .faq-contact .button {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  .services-section,
  .faq-section {
    padding-block: 36px;
  }

  .faq-question {
    padding: 13px 16px;
    font-size: 15.5px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
  }
}
