/* Styling for CMS-driven SEO pages: formatted (Rich Text) copy plus the block
   types ported from the approved page mockup (services, benefits, promo, brand
   logos, location + map, case photos, before/after, final CTA, related pills).
   Loaded only by pages whose data sets seoCss (src/seo-pages.njk) and scoped by
   the lp-seo-page body class, so no other route is affected. Uses the dark
   palette of the existing landing pages (lp.css). Bump business.versions.seoCss
   in src/_data/business.json when this file changes. */

/* ---------- formatted copy ---------- */

.lp-seo-page .lp-story-copy h3,
.lp-seo-page .lp-story-copy h4,
.lp-seo-page .seo-copy h3,
.lp-seo-page .seo-copy h4 {
  margin: 28px 0 10px;
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
}

.lp-seo-page .lp-story-copy h3,
.lp-seo-page .seo-copy h3 { font-size: 22px; }
.lp-seo-page .lp-story-copy h4,
.lp-seo-page .seo-copy h4 { font-size: 18px; }

.lp-seo-page .lp-story-copy > :first-child,
.lp-seo-page .seo-copy > :first-child { margin-top: 0; }

.lp-seo-page .lp-story-copy ul,
.lp-seo-page .lp-story-copy ol,
.lp-seo-page .seo-copy ul,
.lp-seo-page .seo-copy ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

.lp-seo-page .lp-story-copy li,
.lp-seo-page .seo-copy li { margin: 0 0 8px; }
.lp-seo-page .lp-story-copy li:last-child,
.lp-seo-page .seo-copy li:last-child { margin-bottom: 0; }

.lp-seo-page .lp-story-copy strong,
.lp-seo-page .seo-copy strong { color: #fff; font-weight: 600; }

.lp-seo-page .lp-story-copy a,
.lp-seo-page .seo-copy a,
.lp-seo-page .lp-answer a,
.lp-seo-page .accordion-bottom a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-seo-page .lp-story-copy a:hover,
.lp-seo-page .seo-copy a:hover,
.lp-seo-page .lp-answer a:hover,
.lp-seo-page .accordion-bottom a:hover {
  text-decoration-thickness: 2px;
}

.lp-seo-page .seo-copy {
  color: #c7cbd4;
  font-size: 17px;
  line-height: 1.65;
}

.lp-seo-page .seo-copy p { margin: 0 0 16px; }
.lp-seo-page .seo-copy p:last-child { margin-bottom: 0; }
.lp-seo-page .seo-copy .lp-story-lede { color: #fff; font-size: 19px; line-height: 1.5; }

.lp-seo-page .seo-figure { margin: 24px 0; }

.lp-seo-page .seo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.lp-seo-page .seo-meta {
  margin: 0;
  color: #9aa0ab;
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- shared card, grids, buttons ---------- */

.lp-seo-page .seo-grid {
  display: grid;
  gap: 16px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
  max-width: 1100px;
}

.lp-seo-page .seo-grid-services { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lp-seo-page .seo-grid-benefits { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.lp-seo-page .seo-grid-cases { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.lp-seo-page .seo-card {
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 24px;
}

.lp-seo-page .seo-card-title {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.lp-seo-page .seo-card-text {
  display: block;
  margin: 0;
  color: #c7cbd4;
  font-size: 16px;
  line-height: 1.55;
}

.lp-seo-page .seo-grid-benefits .seo-card-text { margin-top: 0; }

.lp-seo-page .seo-card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.lp-seo-page .seo-card-link:hover { border-color: rgba(255, 255, 255, 0.55); }

.lp-seo-page .seo-card-link:focus-visible,
.lp-seo-page .seo-pill:focus-visible,
.lp-seo-page .seo-more:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lp-seo-page .seo-num {
  display: block;
  margin-bottom: 14px;
  color: #3b3e45;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.lp-seo-page .seo-card-cta {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.lp-seo-page .seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.lp-seo-page .seo-actions-center { justify-content: center; }

/* ---------- steps (process) with more than five cards ---------- */

.lp-seo-page .lp-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
}

.lp-seo-page .lp-steps li {
  flex: 1 1 160px;
  max-width: 220px;
}

/* ---------- promo ---------- */

.lp-seo-page .seo-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px;
  background: #141518;
  border: 1px solid #3b3e45;
  border-radius: 28px;
}

.lp-seo-page .seo-promo-copy { display: flex; flex-direction: column; gap: 14px; }
.lp-seo-page .seo-promo-copy h2 { margin: 0; }

.lp-seo-page .seo-badge {
  align-self: flex-start;
  padding: 4px 14px;
  background: #fff;
  color: #050607;
  border-radius: 200px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- brand logos ---------- */

.lp-seo-page .seo-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}

.lp-seo-page .seo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 14px;
  background: #050607;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.lp-seo-page .seo-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- location + map ---------- */

.lp-seo-page .seo-location {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-seo-page .seo-location-card { padding: 36px; }
.lp-seo-page .seo-location-card h2 { margin: 0 0 16px; }

.lp-seo-page .seo-facts { margin: 24px 0 0; padding: 0; }
.lp-seo-page .seo-facts > div { margin-bottom: 14px; }
.lp-seo-page .seo-facts dt { color: #9aa0ab; font-size: 14px; }
.lp-seo-page .seo-facts dd { margin: 2px 0 0; color: #fff; font-size: 17px; line-height: 1.45; }
.lp-seo-page .seo-facts a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.lp-seo-page .seo-map {
  min-height: 420px;
  overflow: hidden;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.lp-seo-page .seo-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) grayscale(0.4);
}

/* ---------- case photos ---------- */

.lp-seo-page .seo-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.lp-seo-page .seo-head-row h2 { margin: 0; }

.lp-seo-page .seo-more {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-seo-page .seo-case {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.lp-seo-page .seo-case img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.lp-seo-page .seo-case figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 24px;
}

.lp-seo-page .seo-case .seo-card-title { margin: 0; }

/* Project card without a photo: the same card, text only. */
.lp-seo-page .seo-case-text {
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 24px;
}

/* ---------- hero of the approved mockup: area chip, muted proof line, rating card ---------- */

.lp-seo-page .lp-kicker {
  display: inline-flex;
  max-width: calc(100% - 32px);
  margin: 0 0 20px;
  padding: 6px 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 200px;
  background: #090a0c;
  color: #b6bcc9;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.lp-seo-page .lp-hero .hero-proof {
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0;
  color: #7c818d;
  text-shadow: none;
}

.lp-seo-page .lp-proof-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  width: calc(100% - 32px);
  max-width: 560px;
  margin: 24px auto 24px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #090a0c;
  text-align: left;
}

.lp-seo-page .lp-proof-stars { color: #e7b008; letter-spacing: 2px; }
.lp-seo-page .lp-proof-score { font-size: 20px; font-weight: 500; line-height: 1.3; }
.lp-seo-page .lp-proof-sub { color: #7c818d; font-size: 14px; }
.lp-seo-page .lp-proof-rule { align-self: stretch; width: 1px; background: rgba(255, 255, 255, 0.12); }
.lp-seo-page .lp-proof-quote { flex: 1; min-width: 150px; margin: 0; font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.lp-seo-page .lp-proof-by { display: block; margin-top: 4px; color: #7c818d; }
.lp-seo-page .lp-proof-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #3b3e45;
  border-radius: 200px;
  background: #090a0c;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.lp-seo-page .lp-proof-link:hover,
.lp-seo-page .lp-proof-link:focus-visible { border-color: #fff; }

@media (max-width: 479px) {
  .lp-seo-page .lp-proof-rule { display: none; }
}

/* Stacked hero: the container has no side gutter at phone widths, so the proof line keeps its own. */
@media (max-width: 1023px) {
  .lp-seo-page .lp-hero .hero-proof { padding: 0 16px; }
}

/* ---------- before / after ---------- */

.lp-seo-page .lp-hero-media { margin-top: 40px; }
.lp-seo-page .lp-hero-media .seo-ba { margin-top: 0; }

/* A hero with a before/after slider is split as in the approved mockup: text, actions and proof on the
   left, the slider on the right. The wrappers become transparent (display: contents) so the existing
   hero markup is the grid itself; below 1024px it stays the stacked, centred hero. */
@media (min-width: 1024px) {
  .lp-seo-page .lp-hero-split > .w-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    column-gap: 56px;
    align-content: center;
    align-items: center;
    max-width: 1240px;
  }
  .lp-seo-page .lp-hero-split .inner-container,
  .lp-seo-page .lp-hero-split .text-center,
  .lp-seo-page .lp-hero-split .mg-top-default { display: contents; }
  .lp-seo-page .lp-hero-split .lp-kicker,
  .lp-seo-page .lp-hero-split h1,
  .lp-seo-page .lp-hero-split .subtitle-wrapper,
  .lp-seo-page .lp-hero-split .buttons-row,
  .lp-seo-page .lp-hero-split .lp-route-line,
  .lp-seo-page .lp-hero-split .hero-proof,
  .lp-seo-page .lp-hero-split .lp-proof-card { grid-column: 1; text-align: left; justify-self: start; }
  .lp-seo-page .lp-hero-split h1 { font-size: 56px; line-height: 1.04; margin-top: 0; }
  .lp-seo-page .lp-hero-split .subtitle-wrapper { justify-content: flex-start; margin-top: 20px; }
  .lp-seo-page .lp-hero-split .lp-answer { margin-left: 0; margin-right: 0; text-align: left; }
  .lp-seo-page .lp-hero-split .buttons-row { justify-content: flex-start; margin-top: 28px; }
  .lp-seo-page .lp-hero-split .hero-proof { margin-top: 22px; max-width: 560px; }
  .lp-seo-page .lp-hero-split .lp-proof-card { margin: 24px 0 24px; width: 100%; }
  .lp-seo-page .lp-hero-split .hero-proof { padding: 0; }
  .lp-seo-page .lp-hero-split .lp-hero-media { grid-column: 2; grid-row: 1 / span 8; margin: 0; align-self: center; }
  .lp-seo-page .lp-hero-split .lp-hero-media .seo-ba { max-width: none; }
}


.lp-seo-page .seo-ba { max-width: 1000px; margin: 34px auto 0; }

.lp-seo-page .seo-ba-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  user-select: none;
}

.lp-seo-page .seo-ba-stage img,
.lp-seo-page .seo-ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-seo-page .seo-ba-after { clip-path: inset(0 0 0 50%); }

.lp-seo-page .seo-ba-tag {
  position: absolute;
  top: 16px;
  padding: 4px 12px;
  border-radius: 200px;
  font-size: 14px;
  font-weight: 500;
}

.lp-seo-page .seo-ba-tag-left { left: 16px; background: rgba(5, 6, 7, 0.82); color: #fff; }
.lp-seo-page .seo-ba-tag-right { right: 16px; background: #fff; color: #050607; }

.lp-seo-page .seo-ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-1px);
  pointer-events: none;
}

.lp-seo-page .seo-ba-line i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: #fff;
  color: #050607;
  border-radius: 50%;
  font-style: normal;
  font-size: 18px;
}

.lp-seo-page .seo-ba-stage input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.lp-seo-page .seo-ba-stage:has(input:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lp-seo-page .seo-ba figcaption { margin-top: 14px; text-align: center; }

/* ---------- final CTA band ---------- */

.lp-seo-page .seo-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
}

.lp-seo-page .seo-final h2 { margin: 0; }
.lp-seo-page .seo-final .seo-copy { max-width: 640px; }
.lp-seo-page .seo-final .seo-actions { margin-top: 8px; }

/* ---------- related pills ---------- */

.lp-seo-page .seo-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}

.lp-seo-page .seo-pill {
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 200px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.lp-seo-page .seo-pill:hover { border-color: #fff; }

/* ---------- small screens ---------- */

@media (max-width: 991px) {
  .lp-seo-page .seo-location { grid-template-columns: minmax(0, 1fr); }
  .lp-seo-page .seo-promo { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
}

@media (max-width: 767px) {
  .lp-seo-page .lp-story-copy h3,
  .lp-seo-page .seo-copy h3 { font-size: 20px; }
  .lp-seo-page .seo-location-card { padding: 24px 20px; }
  .lp-seo-page .seo-map,
  .lp-seo-page .seo-map iframe { min-height: 320px; }
  .lp-seo-page .seo-final { padding: 40px 20px; }
  .lp-seo-page .seo-case img { height: 200px; }
}

/* ---------- wrapping: no one- or two-word final lines ----------
   Route-scoped like the rest of this file. Headings, card titles/text, process
   steps and FAQ answers are short blocks, so balance them; long prose keeps pretty. */
.lp-seo-page :is(h1, h2, h3, .seo-card-title, .display-6.faq) { text-wrap: balance; }
.lp-seo-page :is(.seo-card-text, .seo-meta, .lp-steps p, .accordion-bottom p, .lp-story-lede, .lp-kicker) { text-wrap: balance; }
.lp-seo-page :is(.lp-story-copy p, .seo-copy p) { text-wrap: pretty; }
