/* Page-specific styles inherit the site's light and dark theme variables. */
#title-block-header { display: none; }
.services-wrap { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.5rem 0.75rem; }
.services-wrap { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.services-wrap h1, .services-wrap h2, .services-wrap h3 { color: var(--heading); font-family: inherit; }
.services-wrap .section-kicker { font-family: inherit; }
.services-wrap p { color: var(--text-muted); }
.services-wrap a { text-underline-offset: .2em; }
.services-wrap a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.services-wrap section[id] { scroll-margin-top: 5rem; }
.services-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 4rem; align-items: center; padding: 1rem 0 4rem; }
.services-hero > :first-child { container-type: inline-size; }
.services-hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.6rem); font-size: min(3.6rem, 7cqi); line-height: 1.1; margin: 1.1rem 0 1.5rem; letter-spacing: -.05em; }
.services-hero .services-lead { font-size: 1.22rem; line-height: 1.55; color: var(--text); max-width: 35rem; }
.services-hero p { max-width: 37rem; }
.services-actions { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; margin-top: 1.8rem; }
.services-button { display: inline-flex; align-items: center; gap: 1.5rem; padding: .8rem 1.15rem; border: 1px solid var(--accent); border-radius: 6px; color: var(--bg) !important; background: var(--accent); font-size: .88rem; font-weight: 700; text-decoration: none; }
.services-button:hover { filter: brightness(.92); text-decoration: none; }
.services-text-link { font-size: .87rem; font-weight: 600; color: var(--text); text-decoration: none; }
.services-text-link:hover { color: var(--accent); text-decoration: underline; }
.services-overview { background: var(--tint); border-left: 2px solid var(--accent); padding: 1.8rem; }
.services-overview .overview-question { color: var(--heading); font-family: inherit; font-weight: 600; font-size: 1.1rem; margin: 1rem 0 .4rem; }
.overview-topics { color: var(--text); font-size: .95rem; line-height: 1.5; margin: 0; padding-inline-start: 1.15rem; list-style: disc; }
.overview-topics li::marker { color: var(--heading); font-size: 1em; }
.overview-topics li + li { margin-top: .3rem; }
.services-overview .overview-question:first-child { margin-top: 0; }
.services-overview .overview-topics + .overview-question { margin-top: 1.25rem; }
.services-overview .overview-question a { color: inherit; text-decoration: none; }
.services-overview .overview-question a:hover, .overview-question a span { color: var(--accent); }
.services-section { padding: 1rem 0 3rem; border-top: 1px solid var(--border); }
#expertise.services-section { padding-bottom: 1.75rem; }
.services-section-heading { margin-bottom: 2rem; }
.services-wrap h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.2; margin: .6rem 0 .5rem; border-bottom: 0; padding-bottom: 0; }
.services-section-heading p { margin-top: 0; margin-bottom: 0; }
.expertise-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.expertise-row {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  background: color-mix(in srgb, var(--bg-elevated) 91%, var(--case-tint));
}
.expertise-row:nth-child(1) { --case-tint: #438cc7; }
.expertise-row:nth-child(2) { --case-tint: #55a180; }
.expertise-row:nth-child(3) { --case-tint: #9273c3; }
.expertise-row:nth-child(4) { --case-tint: #c48b4e; }
.expertise-row h3 { margin: 0 0 .7rem; font-size: 1.08rem; line-height: 1.4; }
.expertise-row p { margin: 0; font-size: .91rem; }
.services-format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.services-format { border: 1px solid var(--border); border-radius: 10px; padding: 1.6rem; background: var(--bg-elevated); border-top: 2px solid var(--accent); display: flex; flex-direction: column; }
.format-label { color: var(--accent); font-size: .7rem; letter-spacing: .055em; font-weight: 700; text-transform: uppercase; }
.services-format h3 { display: flex; align-items: baseline; gap: .55rem; font-size: 1.35rem; margin: .7rem 0 .45rem; }
.services-format-icon { color: var(--accent); font-size: .95em; flex: none; }
.services-format h3 + p { margin-top: 0; margin-bottom: 1.25rem; }
.services-format p, .services-format li { font-size: .88rem; }
.services-format ul { color: var(--text-muted); padding-left: 1.1rem; margin-top: 0; margin-bottom: 1.5rem; text-align: left; }
.services-format li { margin-bottom: .4rem; }
.services-format .format-fit { display: flex; align-items: flex-start; gap: .6rem; margin: auto 0 0; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--accent); }
.format-fit strong { color: inherit; }
.fit-check { flex: 0 0 auto; font-size: 1rem; font-weight: 700; line-height: 1.35; }
/* Share content rows so wrapping never shifts one card's footer below another. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 901px) {
    .services-format-grid { row-gap: 0; }
    .services-format { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
    .services-format .format-fit { margin-top: 0; }
  }
}
.services-example-list { margin: 0; padding-inline-start: 1.75rem; }
.services-example-list li { padding-inline-start: .65rem; }
.services-example-list li + li { margin-top: 1.5rem; }
.services-example-list li::marker { color: var(--accent); font-weight: 700; }
.services-example-list h3 { font-size: 1.08rem; line-height: 1.4; margin: 0 0 .45rem; }
.services-example-list p { max-width: 65ch; font-size: .91rem; margin: 0; }
.services-background { background: var(--tint); border: 1px solid var(--border); border-radius: 10px; padding: 2.5rem; margin: 1rem 0 3rem; }
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.1rem; }
.approach-grid h3 { display: flex; align-items: baseline; gap: .55rem; font-size: 1.35rem; margin: 0 0 .7rem; }
.approach-icon { width: 1.1em; height: 1.1em; flex: 0 0 1.1em; align-self: flex-start; margin-top: .15em; }
.services-background p { font-size: .92rem; margin: 0; }
.services-contact { text-align: center; border-top: 1px solid var(--border); padding: 1rem 1rem 3rem; }
.services-contact p { max-width: 38rem; margin: 0 auto 1.6rem; }
.contact-form { max-width: 44rem; margin: 2rem auto 0; text-align: left; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.contact-field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.2rem; }
.contact-field label { color: var(--text); font-size: .85rem; font-weight: 600; }
.field-optional { color: var(--text-muted); font-size: .75rem; font-weight: 400; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: .7rem .8rem; background: var(--bg-elevated); color: var(--text); font: inherit; font-size: .9rem; }
.contact-field textarea { resize: vertical; }
.contact-field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.contact-field input:focus-visible, .contact-field select:focus-visible, .contact-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form .contact-form-hint { max-width: none; margin: 0 0 1.25rem; font-size: .78rem; }
.contact-form .contact-form-status { margin: 1rem 0 0; font-size: .85rem; color: var(--accent); }
@media (max-width: 900px) {
  .services-hero { gap: 2rem; }
  .services-format-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-wrap { padding: 1rem .75rem .5rem; }
  .services-hero, .expertise-list { grid-template-columns: 1fr; gap: 1.25rem; }
  .services-hero { padding-bottom: 2.5rem; }
  .services-section { padding: 2.25rem 0; }
  .services-format { display: flex; padding: 1.4rem; }
  .services-background { padding: 1.5rem; margin-bottom: 2rem; }
  .services-contact { padding: 2.5rem 0 1rem; }
  .contact-form-grid { grid-template-columns: 1fr; }
}

