/* SEO additions reuse the existing JNP type, colors and spacing. */
.seo-follow-on { margin-top: 1rem; }
.seo-service-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
.seo-service-links a, .seo-text-link { color: var(--color-paper); text-decoration: underline; text-underline-offset: .25em; }
.seo-service-links a { font-size: .95rem; }
.seo-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-top: 2rem; }
.seo-service-card, .seo-service-detail { padding: 1.75rem; border: 1px solid var(--color-hairline); min-width: 0; }
.seo-service-card { display: block; text-decoration: none; transition: border-color .2s ease; }
.seo-service-card:hover, .seo-service-card:focus-visible { border-color: var(--color-paper); }
.seo-service-card h3, .seo-service-detail h3, .seo-proof-list h3 { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; margin: 0 0 .75rem; }
.seo-service-card p, .seo-service-detail p, .seo-proof-list p { color: var(--color-support); margin: 0 0 1rem; line-height: 1.65; }
.seo-breadcrumb { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .85rem; margin-bottom: 1.5rem; color: var(--color-support); }
.seo-breadcrumb a { text-underline-offset: .2em; }
.seo-service-intro .page-intro__title { max-width: 23ch; }
.seo-service-body { padding-bottom: var(--section-gap); }
.seo-service-opening { padding-top: 2.5rem; }
.seo-service-body .lead-copy { max-width: 52rem; margin: 1.5rem 0 0; color: var(--color-support); line-height: 1.75; }
.seo-service-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.seo-proof-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.75rem; margin-top: 2rem; }
.seo-proof-list a { display: block; padding-block: 1rem; border-bottom: 1px solid var(--color-hairline); text-decoration: none; min-width: 0; }
.seo-proof-list a:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.seo-service-close .btn { margin-top: 2rem; }
.seo-project-summary { padding-block: clamp(2.5rem,6vw,5rem); }
.seo-project-summary .section-title { font-size: clamp(1.75rem,4vw,2.8rem); }
.seo-project-summary .cs-block__body { margin-top: 1.25rem; line-height: 1.75; }
/* .seo-work-services is now a .content-section (see work.html) -- that class already supplies border-top and padding-top, so no separate border rule is needed here anymore. */
.seo-work-services .btn { margin-top: 1.5rem; }
.seo-work-services__links { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-hairline); }

/* ---------- Image-led proof cards (service pages) ---------- */
/* Scoped entirely to .seo-* classes -- no change to shared/global
   .content-section, card, or grid rules used elsewhere on the site. */
.seo-proof-list {
  align-items: start;
}
.seo-proof-list a {
  padding: 0;
  border: 1px solid var(--color-hairline);
  transition: border-color .2s ease;
  min-width: 0; /* the actual mobile-overflow bug: without this, a
                    grid item containing a large-intrinsic-width <img>
                    (1600px source) refuses to shrink below that
                    width, forcing the whole grid track wider than the
                    viewport regardless of grid-template-columns */
}
.seo-proof-list a:hover, .seo-proof-list a:focus-visible {
  border-color: var(--color-paper);
}
.seo-proof-list a > h3, .seo-proof-list a > p, .seo-proof-list a > .seo-text-link {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.seo-proof-list a > h3 { margin-top: 1.5rem; }
.seo-proof-list a > .seo-text-link { display: block; margin-bottom: 1.5rem; }
.seo-proof-list__thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto; /* without this, the img's own width/height HTML
                    attributes can win the height axis over
                    aspect-ratio in some cases -- same root cause as
                    an earlier bug this session (DeWine testimonial
                    image) */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
  background: var(--color-hairline);
}
.seo-proof-list__thumb--product {
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

/* Balanced breathing room so paragraphs/cards don't run straight into
   the divider that starts the next content-section. Scoped to
   sections inside the new SEO service body only. */
.seo-service-body > .content-section {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

@media(max-width: 760px) {
 .seo-service-grid, .seo-service-grid--three, .seo-proof-list { grid-template-columns: 1fr; }
 .seo-service-card, .seo-service-detail { padding: 1.25rem; }
 .seo-service-links { gap: 1rem 1.25rem; }
 .seo-proof-list a > h3, .seo-proof-list a > p, .seo-proof-list a > .seo-text-link { margin-left: 1.25rem; margin-right: 1.25rem; }
 .seo-proof-list a > h3 { margin-top: 1.25rem; font-size: 1.4rem; }
 .seo-proof-list a > .seo-text-link { margin-bottom: 1.25rem; }
}
@media(prefers-reduced-motion: reduce) { .seo-service-card { transition: none; } }


/* ---------- EPA-through-Jacobs credit (restrained text, no logo) ---------- */
.seo-epa-doc-credit {
  color: var(--color-support);
  line-height: 1.65;
  max-width: 52rem;
}


/* ---------- Legal service page: experience module ---------- */
.seo-legal-experience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 760px) {
  .seo-legal-experience { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; }
}
.seo-legal-experience__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.seo-legal-experience__caption {
  margin: 0.75rem 0 0;
  color: var(--color-support);
  font-size: 0.85rem;
}
.seo-legal-subhead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}


/* ---------- Opener figures (service pages) ---------- */
.seo-opener-figure {
  margin: 0 0 2rem;
  min-width: 0;
}
.seo-opener-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.seo-opener-figure__caption {
  margin: 0.75rem 0 0;
  color: var(--color-support);
  font-size: 0.85rem;
}

/* ---------- Process blocks: two-column desktop, stacked mobile ---------- */
.seo-process-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 760px) {
  .seo-process-block { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; }
}
.seo-process-block__media { min-width: 0; }
.seo-process-block__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- Proof-card alignment fix: stretch + column flex so CTAs
   align at the bottom of each row, instead of each card only being
   as tall as its own content ---------- */
.seo-proof-list {
  align-items: stretch;
}
.seo-proof-list a {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.seo-proof-list a > .seo-text-link {
  margin-top: auto;
}


.seo-about-figure { margin: 1.5rem 0 0; }
.seo-about-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.seo-services-figure { margin-top: 2.5rem; }

/* ---------- Small project galleries (existing project pages) ---------- */
.seo-project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.seo-project-gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-project-gallery figure { margin: 0; min-width: 0; }
.seo-project-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.seo-project-gallery figure.seo-portrait-figure img { aspect-ratio: 2 / 3; }
.seo-project-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-support);
}
@media (max-width: 640px) {
  .seo-project-gallery, .seo-project-gallery--two { grid-template-columns: 1fr; }
}
