/* ═══════════════════════════════════════════════════════════
   SERVICES PAGE — numbered cards, each with a header strip,
   two-column body, and an optional "Learn more" accordion.
   ═══════════════════════════════════════════════════════════ */

.services-page {
  background: #fff;
  position: relative;
  isolation: isolate;
   padding: 64px 0;
}

main {
  background: #fffffe !important;
  padding-top: 0 !important;
}

.content-page-hero--title-only {
  padding-inline: 0 !important;
}


/* ─── CAD line-art background, masked to fade in from the right ─ */

.services-cad-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}
.services-cad-bg img {
  position: absolute;
  top: 0;
  right: -4vw;
  width: min(1100px, 82vw);
  height: auto;
  max-width: none;
  opacity: 0.22;
  filter: brightness(0.68) saturate(1.4);
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 14%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 14%, #000 34%);
}
@media (max-width: 767px) {
  .services-cad-bg img {
    top: 0;
    right: -24%;
    width: 132%;
    opacity: 0.14;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.68) 16%, #000 42%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.68) 16%, #000 42%);
  }
}

/* Content sits above the background decoration. Width/centering now comes
   from the real .wrap element in the markup — not duplicated here. */
.services-page .content-page-hero,
.services-page .services-list {
  position: relative;
  z-index: 1;
}
.services-page .content-page-hero {
  background: transparent;
  border-bottom: 0;
 
}

.content-page-hero__title {
    margin: 0;
    color: var(--black-deep);
    font-family: var(--display);
    font-size: clamp(36px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;

  
}
/* Short rust rule under the page title — shared with How to order;
   consider promoting this to base.css if both pages need it. */
.content-page-hero__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 24px;
  background: var(--rust);
}
@media (max-width: 640px) {
  .content-page-hero__title::after {
    width: 40px;
    height: 3px;
    margin-top: 18px;
  }
}


/* ─── List + card shell ──────────────────────────────────────── */

.services-list {
  padding: 32px 24px 72px;
}

.services-card {
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid #E6E2DC;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(5, 15, 19, 0.04);
}
.services-card:last-of-type { margin-bottom: 0; }

@media (max-width: 1023px) {
  .services-list { padding-top: 24px; }
}
@media (max-width: 640px) {
  .services-list { padding: 0 12px 48px; }
  .services-card { margin-bottom: 16px; border-radius: 14px; }
}


/* ─── Numbered header strip ──────────────────────────────────── */

.services-card-header {
  --services-header-py: 20px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: var(--services-header-py) 32px;
  background: #f5f5f5;
  border-bottom: 1px solid #E6E2DC;
}
.services-card-number {
  flex: 0 0 auto;
  align-self: center;
  color: var(--rust);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
}
.services-card-divider {
  flex: 0 0 auto;
  align-self: stretch;
  width: 1px;
  background: #E6E2DC;
}
.services-card-title {
  align-self: center;
  margin: 0;
  color: var(--black-deep);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .services-card-number,
  .services-card-title { font-size: 32px; }
  
}
@media (max-width: 1023px) {
  .services-card-header { padding: 20px 24px; }
  .services-list { padding-top: 32px; }
}
@media (max-width: 640px) {
  .services-card-header { --services-header-py: 18px; gap: 8px; padding: var(--services-header-py) 20px; }
  .services-card-number,
  .services-card-title { font-size: 23px; }
}


/* ─── Card body / 2-col grid ──────────────────────────────────── */

.services-card-body {
  max-width: none;
  padding: 32px;
}
.services-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .services-card-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .services-card-body { padding: 0 !important; }

}

@media (max-width: 1023px) {
  .services-card-body { padding: 12px; }
}
@media (max-width: 640px) {
  .services-card-body { padding: 0px !important; }
}


/* ─── Copy ────────────────────────────────────────────────────── */
.services-card-copy {
  padding: 40px 48px;
}
.services-card-text {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.625;
  color: #4B5563;
  max-width: 36rem;
  margin: 0 0 20px;
}
.services-card-text--small { font-size: 14px; }
.services-email-link {
  font-weight: 700;
  color: var(--rust);
  transition: color 0.15s;
}
.services-email-link:hover { color: var(--rust-deep); }

.services-bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: #4B5563;
}
.services-bullets svg {
  color: var(--rust);
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
}
@media (max-width: 640px) {
  .services-card-copy {
    padding: 0px 0px 12px 0px;
  }

  .services-card-copy > * {
   padding: 0 12px; 
  }

  .services-learn-more-toggle {
    margin-left: 12px;
  }
}

/* ─── "Learn more" toggle + accordion ────────────────────────── */

.services-learn-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--rust);
  transition: color 0.15s;
}
.services-learn-more-toggle:hover { color: var(--rust-deep); }
.services-learn-more-icon {
  width: 16px;
  height: 16px;
  color: var(--gray-500);
  transition: transform 0.25s, color 0.2s;
}
.services-learn-more-toggle[aria-expanded="true"] .services-learn-more-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}
.accordion-content.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.accordion-inner {
  min-height: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .accordion-content { transition: none; }
}

.services-learn-more-body {
  padding: 20px 0 4px 16px;
  border-left: 2px solid var(--rust);
  margin-top: 12px;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: #4B5563;
}
.services-learn-more-body p { margin: 0; }

.services-learn-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.services-learn-more-grid > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.services-learn-more-grid > div::before {
  content: "—";
  color: var(--rust);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .services-learn-more-grid { grid-template-columns: 1fr; }
}


/* ─── Image ───────────────────────────────────────────────────── */

.services-card-media { width: 100%; height: 340px; object-fit: cover; 
  border-radius: 0px 0px 12px 0px; }
.services-card-media--mobile { display: none; }
@media (max-width: 1023px) {
  .services-card-media {
    width: calc(100% + var(--page-pad) + var(--page-pad));
    max-width: none;
    height: clamp(230px, 56.25vw, 340px);
    margin-left: calc(0px - var(--page-pad));
    border-radius: 0 !important;
  }
  .services-card-media--mobile { display: block; margin-bottom: 1.25rem; }
  .services-card-media--desktop { display: none; }
}
@media (max-width: 767px) {
  .services-card-media--mobile { aspect-ratio: 4 / 3; height: auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .services-card-media--mobile { aspect-ratio: auto; height: clamp(280px, 42vw, 340px); }
}
@media (min-width: 1024px) {
  .services-card-media--desktop {
    width: 100%;
    max-width: none;
    min-height: 360px;
    height: 100%;
    align-self: stretch;
    object-fit: cover;
  }
}


/* ─── Closing note ───────────────────────────────────────────── */

.services-order-note {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  color: #4B5563;
}
.services-order-note a {
  font-weight: 700;
  color: var(--rust);
  transition: color 0.15s;
}
.services-order-note a:hover { color: var(--rust-deep); }
@media (max-width: 1023px) {
  .services-order-note { padding: 0 24px; }
}
@media (max-width: 640px) {
  .services-order-note { padding: 0 20px; }
}