.seo-hero {
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 9rem 0 4rem;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, .94), rgba(127, 15, 35, .78)),
    var(--seo-hero-image, url("/assets/images/services-hero.jpg")) center/cover;
}

.seo-hero .breadcrumb {
  margin-bottom: 1.25rem;
}

.seo-hero .breadcrumb a,
.seo-hero .breadcrumb span {
  color: rgba(255, 255, 255, .84);
}

.seo-hero h1 {
  max-width: 920px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.seo-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.seo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: #c8102e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seo-content {
  padding: 5rem 0;
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 4rem;
  align-items: start;
}

.seo-prose {
  max-width: 820px;
}

.seo-prose h2 {
  margin: 3.25rem 0 1.2rem;
  color: #0f172a;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.seo-prose h2:first-child {
  margin-top: 0;
}

.seo-prose h3 {
  margin: 2rem 0 .75rem;
  color: #1e293b;
  font-size: 1.25rem;
}

.seo-prose p,
.seo-prose li {
  color: #475569;
  font-size: 1.06rem;
  line-height: 1.85;
}

.seo-prose ul,
.seo-prose ol {
  padding-left: 1.35rem;
}

.seo-prose li + li {
  margin-top: .65rem;
}

.seo-lead {
  color: #334155 !important;
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
}

.seo-note {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid #c8102e;
  border-radius: 0 14px 14px 0;
  background: #fff5f6;
}

.seo-note p {
  margin: 0;
  color: #7f1d2d;
}

.seo-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1.25rem;
}

.seo-sidebar-card {
  padding: 1.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
}

.seo-sidebar-card h2,
.seo-sidebar-card h3 {
  margin: 0 0 .8rem;
  color: #0f172a;
  font-size: 1.2rem;
}

.seo-sidebar-card p {
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.65;
}

.seo-sidebar-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-sidebar-card li + li {
  margin-top: .7rem;
}

.seo-sidebar-card a:not(.btn) {
  color: #334155;
  font-weight: 650;
  text-decoration: none;
}

.seo-sidebar-card a:not(.btn):hover {
  color: #c8102e;
}

.seo-steps {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 !important;
  list-style: none;
  counter-reset: seo-step;
}

.seo-steps li {
  position: relative;
  min-height: 64px;
  padding: 1.15rem 1.25rem 1.15rem 5rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  counter-increment: seo-step;
}

.seo-steps li::before {
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #c8102e;
  color: #fff;
  content: counter(seo-step);
  font-weight: 800;
}

.seo-faq {
  display: grid;
  gap: .9rem;
  margin: 1.75rem 0;
}

.seo-faq details {
  padding: 1.25rem 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.seo-faq summary {
  cursor: pointer;
  color: #0f172a;
  font-weight: 750;
}

.seo-faq details p {
  margin: 1rem 0 0;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.seo-link-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.seo-link-card:hover {
  transform: translateY(-4px);
  border-color: #c8102e;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .1);
}

.seo-link-card h3 {
  margin: 0 0 .65rem;
  color: #0f172a;
  font-size: 1.15rem;
}

.seo-link-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.seo-link-card span {
  margin-top: 1.2rem;
  color: #c8102e;
  font-weight: 750;
}

.seo-related,
.blog-listing,
.local-map-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.seo-related .section-header {
  margin-bottom: 2.5rem;
}

.seo-cta {
  padding: 4.5rem 0;
  background: #0f172a;
  color: #fff;
}

.seo-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.seo-cta h2 {
  margin: 0 0 .7rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.seo-cta p {
  max-width: 680px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
  color: #64748b;
  font-size: .86rem;
}

.blog-card h2,
.blog-card h3 {
  margin: 0 0 .8rem;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.35;
}

.blog-card p {
  color: #64748b;
  line-height: 1.65;
}

.blog-card a {
  color: inherit;
  text-decoration: none;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: .95rem;
}

.local-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: stretch;
}

.local-contact-card {
  padding: 2rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.local-contact-card address {
  color: #475569;
  font-style: normal;
  line-height: 1.8;
}

.local-contact-card a {
  color: #c8102e;
  font-weight: 750;
}

.local-map {
  min-height: 420px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
}

.local-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.footer-wordmark {
  color: #fff;
}

@media (max-width: 980px) {
  .seo-layout {
    grid-template-columns: 1fr;
  }

  .seo-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-card-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .seo-hero {
    min-height: 380px;
    padding: 7.5rem 0 3rem;
  }

  .seo-content,
  .seo-related,
  .blog-listing,
  .local-map-section {
    padding: 3.5rem 0;
  }

  .seo-layout {
    gap: 2.5rem;
  }

  .seo-sidebar,
  .seo-card-grid,
  .blog-grid,
  .local-contact-grid {
    grid-template-columns: 1fr;
  }

  .seo-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
