/* =========================================================
   SEO Service Page Template (GeneratePress + ACF)
   ========================================================= */

/* Layout wrapper */
.seo-service-wrapper {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 48px 0;
}

/* Grid layout */
.seo-service-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
}

/* =========================================================
   LEFT CONTENT AREA
   ========================================================= */

.seo-content-area h2 {
  margin: 0 0 14px;
}

.seo-intro-section {
  margin-bottom: 28px;
}

.seo-intro-section .intro-lead p:first-child {
  font-size: 1.05em;
}

/* Section spacing */
.seo-content-section {
  margin: 26px 0;
}

.seo-content-section .section-body p,
.seo-content-section .section-body li {
  line-height: 1.6;
}

/* =========================================================
   SERVICE IMAGE
   ========================================================= */

.seo-service-image {
  margin: 24px 0 32px;
}

.seo-service-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* =========================================================
   SIDEBAR CTA
   ========================================================= */

.seo-form-area {
  align-self: start;
  position: sticky;
  top: 120px; /* adjust if header height changes */
}

.sidebar-cta-card {
  background: #0f0f10;
  color: #ffffff;
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
}

.sidebar-cta-logo img {
  max-width: 170px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

.sidebar-cta-headline {
  font-size: 1.15em;
  margin: 0 0 10px;
}

.sidebar-cta-text {
  margin: 0 0 16px;
  opacity: 0.92;
  line-height: 1.5;
}

.sidebar-cta-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #d11f2a; /* Rankin red */
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-cta-button:hover {
  filter: brightness(1.05);
}

.sidebar-cta-trust {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9em;
  opacity: 0.85;
}

/* =========================================================
   CTA SECTION (MAIN CONTENT)
   ========================================================= */

.seo-cta-section {
  margin-top: 36px;
  padding: 22px;
  border-radius: 12px;
  background: #f5f5f5;
}

/* =========================================================
   INTERNAL LINKS
   ========================================================= */

.seo-internal-links {
  margin-top: 40px;
  padding: 22px;
  border-radius: 12px;
  background: #f7f7f7;
}

.seo-internal-links h2 {
  margin-top: 0;
  padding-top: 8px; /* spacing fix you requested */
  margin-bottom: 12px;
  font-size: 1.15em;
}

.seo-internal-links ul {
  margin: 0;
  padding-left: 18px;
}

.seo-internal-links li {
  margin: 8px 0;
}

.seo-internal-links a {
  font-weight: 600;
  text-decoration: none;
}

.seo-internal-links a:hover {
  text-decoration: underline;
}

/* =========================================================
   MOBILE
   ========================================================= */

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

  .seo-form-area {
    position: static;
    top: auto;
    margin-top: 32px;
  }
}