/**
 * Platform migration landing pages built without Elementor.
 *
 * One stylesheet for all four pages — WordPress, Squarespace, Weebly and
 * Shopify to Wix — because they are one layout with different words in it.
 *
 * Everything is scoped under .sbp-migration and every class carries an sbp-
 * prefix, for the same reason the other templates do it: bare names (.section,
 * .wrap, .num, .step, .feature) already exist in the theme and in Elementor,
 * and unprefixed they would leak into every other page.
 *
 * Typography follows the site, not the mockup: the site runs on Roboto.
 */

/* Kava puts a 50px margin above #content and 30px below it for ordinary pages.
   Both edges of this template are full-bleed dark bands — the hero at the top,
   the CTA at the bottom — so either margin shows up as a white strip against
   the header and the footer. Drop both, for this template only. */
body.page-template-platform-migration-native #content.site-content { margin-top: 0; margin-bottom: 0; }

.sbp-migration {
  --sbp-navy: #202734;
  --sbp-ink: #3d4756;
  --sbp-muted: #6f7883;
  --sbp-cyan: #2bc0c1;
  --sbp-cyan-dark: #16aeb4;
  --sbp-light: #f5f7f8;
  --sbp-line: #e4e9ed;

  color: var(--sbp-ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

.sbp-migration *,
.sbp-migration *::before,
.sbp-migration *::after { box-sizing: border-box; }

/* The theme turns on hyphens: auto site-wide, which chops words mid-syllable
   ("migra-tion"). Wrap on word boundaries instead. overflow-wrap stays as a
   safety net so an unbreakable string still cannot overflow its box. */
.sbp-migration,
.sbp-migration * {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
}

.sbp-migration .sbp-wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.sbp-migration h1,
.sbp-migration h2,
.sbp-migration h3 { font-family: inherit; }

.sbp-migration svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sbp-migration .sbp-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sbp-cyan);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; flex: 0 0 40px;
}

/* ---------- hero ---------- */
/* The Elementor original used a photographic background behind a dark wash.
   The template passes that file through --sbp-hero-bg; when the file is missing
   the variable falls back to `none` and the gradients alone carry the band, so
   the hero never renders as bare text on white. */
.sbp-migration .sbp-hero {
  background-image:
    linear-gradient(90deg, rgba(28,38,52,.94), rgba(28,38,52,.72)),
    var(--sbp-hero-bg, none),
    radial-gradient(circle at 80% 20%, rgba(44,193,198,.20), transparent 40%),
    linear-gradient(135deg, #2f3d51, #243141);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px 0 60px;
}
.sbp-migration .sbp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: center; }
.sbp-migration .sbp-hero h1 { margin: 0 0 16px; font-size: 40px; font-weight: 700; line-height: 1.14; letter-spacing: -.01em; color: #fff; }
.sbp-migration .sbp-hero p { margin: 0 0 16px; max-width: 640px; color: #e4e9ed; font-size: 15px; font-weight: 300; line-height: 1.6; }
.sbp-migration .sbp-hero-note { font-size: 13px !important; margin-bottom: 0 !important; }
.sbp-migration .sbp-hero-list { display: grid; gap: 8px; margin: 18px 0 20px; padding: 0; list-style: none; font-size: 14px; font-weight: 300; }
.sbp-migration .sbp-hero-list li::before { content: "✓"; color: var(--sbp-cyan); font-weight: 700; margin-right: 10px; }

/* ---------- form card (Contact Form 7 lives inside) ---------- */
.sbp-migration .sbp-form-card {
  background: var(--sbp-navy); padding: 22px; border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.sbp-migration .sbp-form-heading {
  margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 400; line-height: 1.45;
}
/* Contact Form 7 wraps every field in its own <p>, which the theme gives a
   16px bottom margin. Stacked on the fields' own margins that makes a 24px gap.
   The paragraph is the single source of spacing here; the controls contribute
   nothing. */
.sbp-migration .sbp-form-card form p { margin: 0 0 8px; }
.sbp-migration .sbp-form-card form p:last-of-type { margin-bottom: 0; }

.sbp-migration .sbp-form-card input[type="text"],
.sbp-migration .sbp-form-card input[type="email"],
.sbp-migration .sbp-form-card input[type="url"],
.sbp-migration .sbp-form-card input[type="tel"],
.sbp-migration .sbp-form-card textarea {
  width: 100%; border: 0; background: #fff; margin: 0;
  padding: 11px 13px; font: inherit; font-size: 14px; color: #333; border-radius: 3px;
}
.sbp-migration .sbp-form-card textarea { height: 96px; resize: none; display: block; }
.sbp-migration .sbp-form-card label { display: block; margin: 0; }
.sbp-migration .sbp-form-card .wpcf7-form-control-wrap { display: block; }

.sbp-migration .sbp-form-card input[type="submit"] {
  width: 100%; display: block; background: var(--sbp-cyan); color: #fff; border: 0;
  border-radius: 999px; padding: 14px 20px; font-weight: 500; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  transition: background .18s ease; margin: 4px 0 0;
}
.sbp-migration .sbp-form-card input[type="submit"]:hover { background: var(--sbp-cyan-dark); }

/* The spinner sits beside the button and reserves 24px plus 48px of margin even
   when idle. Only show it while the form is actually submitting. */
.sbp-migration .sbp-form-card .wpcf7-spinner { display: none; }
.sbp-migration .sbp-form-card form.submitting .wpcf7-spinner { display: block; margin: 8px auto 0; }

.sbp-migration .sbp-form-card .wpcf7-not-valid-tip { color: #ffb4b4; font-size: 12px; margin: 4px 0 0; }
.sbp-migration .sbp-form-card .wpcf7-response-output {
  color: #fff; font-size: 13px; line-height: 1.4;
  border-color: rgba(255,255,255,.4); border-width: 1px;
  margin: 10px 0 0; padding: 8px 12px;
}

/* ---------- generic section ---------- */
.sbp-migration .sbp-section { padding: 72px 0; }
.sbp-migration .sbp-section.sbp-alt { background: var(--sbp-light); }
.sbp-migration .sbp-head { text-align: center; max-width: 880px; margin: 0 auto 44px; }
.sbp-migration .sbp-head h2 {
  margin: 0 0 10px; font-size: 34px; font-weight: 300; line-height: 1.18;
  color: #46515f; text-transform: uppercase;
}
.sbp-migration .sbp-head h2 strong { font-weight: 500; color: var(--sbp-navy); }
.sbp-migration .sbp-under { width: 48px; height: 2px; background: var(--sbp-cyan); margin: 15px auto; }
.sbp-migration .sbp-head p { margin: 0; color: var(--sbp-muted); font-size: 14px; font-weight: 300; line-height: 1.6; }

/* ---------- feature grids ---------- */
.sbp-migration .sbp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 44px; }
.sbp-migration .sbp-feature { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
.sbp-migration .sbp-ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--sbp-cyan);
  display: flex; align-items: center; justify-content: center; color: #fff;
  grid-row: span 2;
}
.sbp-migration .sbp-ico svg { width: 21px; height: 21px; display: block; }
.sbp-migration .sbp-feature h3 { margin: 3px 0 6px; font-size: 16px; font-weight: 500; color: #353e4f; }
.sbp-migration .sbp-feature p { margin: 0; color: #6e7680; font-size: 13px; font-weight: 300; line-height: 1.55; }

/* ---------- before / after showcase ---------- */
/* The client card sits beside the pair of screenshots rather than under them,
   which is how the Elementor original read: the two shots stay side by side and
   close together, so the comparison is the thing the eye lands on. */
.sbp-migration .sbp-showcase { display: grid; grid-template-columns: .82fr 2fr; gap: 26px; align-items: end; }

.sbp-migration .sbp-case {
  background: #fff; border: 1px solid var(--sbp-line); border-radius: 10px;
  padding: 26px 24px; box-shadow: 0 4px 14px rgba(31,44,59,.06);
}
.sbp-migration .sbp-case h3 { margin: 0 0 10px; font-size: 20px; font-weight: 500; color: #353e4f; }
.sbp-migration .sbp-case p { margin: 0 0 20px; color: #6e7680; font-size: 14px; font-weight: 300; line-height: 1.6; }
.sbp-migration .sbp-case-link {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sbp-cyan); color: #fff; text-decoration: none;
  border-radius: 4px; padding: 11px 20px; font-size: 14px; font-weight: 400;
  transition: background .18s ease;
}
.sbp-migration .sbp-case-link:hover { background: var(--sbp-cyan-dark); color: #fff; }

.sbp-migration .sbp-shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sbp-migration .sbp-shot { margin: 0; }
.sbp-migration .sbp-shot figcaption {
  margin-bottom: 12px; color: #353e4f; font-size: 17px; font-weight: 500; text-align: center;
}
.sbp-migration .sbp-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--sbp-line); border-radius: 4px;
  box-shadow: 0 4px 14px rgba(31,44,59,.08);
}
/* Centred on the seam between the two shots. Absolute rather than a third grid
   track so the shots keep equal widths and the badge can overlap them both. */
.sbp-migration .sbp-shots-arrow {
  position: absolute; left: 50%; top: calc(50% + 14px); transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sbp-cyan); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(31,44,59,.18);
}
.sbp-migration .sbp-shots-arrow svg { width: 22px; height: 22px; display: block; }

/* ---------- process ---------- */
.sbp-migration .sbp-process { display: grid; grid-template-columns: 1fr .82fr; gap: 60px; align-items: start; }
.sbp-migration .sbp-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; }
.sbp-migration .sbp-step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.sbp-migration .sbp-step h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 500; color: #353e4f; }
.sbp-migration .sbp-step p { margin: 0; color: #6e7680; font-size: 13px; font-weight: 300; line-height: 1.55; }

/* ---------- what can be migrated ---------- */
.sbp-migration .sbp-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sbp-migration .sbp-scope-col {
  background: #fff; border: 1px solid var(--sbp-line); border-radius: 12px;
  padding: 28px 26px; box-shadow: 0 4px 14px rgba(31,44,59,.05);
}
.sbp-migration .sbp-scope-col h3 { margin: 0 0 18px; font-size: 18px; font-weight: 500; color: #353e4f; }
.sbp-migration .sbp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.sbp-migration .sbp-list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: #4f5967; font-size: 15px; line-height: 1.4;
}
.sbp-migration .sbp-list svg { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 1px; }
/* The two lists are not the same promise. A tick means it comes across as a
   matter of course; the second list is work we will look at and price, so it
   gets its own mark in a quieter colour rather than a tick that overstates it. */
.sbp-migration .sbp-list-yes svg { color: var(--sbp-cyan); }
.sbp-migration .sbp-list-maybe svg { color: #9aa4ae; }

/* ---------- faq ---------- */
.sbp-migration .sbp-faq { max-width: 900px; margin-inline: auto; display: grid; gap: 8px; }
.sbp-migration .sbp-faq details { border: 1px solid #d7dee4; background: #fff; }
.sbp-migration .sbp-faq summary {
  cursor: pointer; list-style: none; padding: 14px 16px; background: var(--sbp-navy);
  color: #fff; font-size: 13px; font-weight: 500; display: flex;
  align-items: baseline; gap: 8px;
}
.sbp-migration .sbp-faq summary::-webkit-details-marker { display: none; }
/* The Q: and A: labels the Elementor copy carried inline. They belong to the
   presentation, not the text, so they are drawn rather than stored: the content
   file holds the question and the answer and nothing else.
   summary is a flex row, so the marker is pushed right by its own margin — with
   space-between the label, the text and the marker would spread out evenly. */
.sbp-migration .sbp-faq summary::before {
  content: "Q:"; flex: 0 0 auto; color: var(--sbp-cyan); font-weight: 700;
}
.sbp-migration .sbp-faq summary::after { content: "+"; color: var(--sbp-cyan); font-size: 16px; margin-left: auto; padding-left: 15px; }
.sbp-migration .sbp-faq details[open] summary { background: var(--sbp-cyan-dark); }
.sbp-migration .sbp-faq details[open] summary::before { color: #fff; }
.sbp-migration .sbp-faq details[open] summary::after { content: "−"; color: #fff; }
.sbp-migration .sbp-faq details p { margin: 0; padding: 16px; color: #69747f; font-size: 13px; font-weight: 300; line-height: 1.55; }
.sbp-migration .sbp-faq details p::before { content: "A: "; color: var(--sbp-cyan-dark); font-weight: 700; }

/* ---------- cta band ---------- */
.sbp-migration .sbp-cta {
  background:
    linear-gradient(90deg, rgba(25,36,50,.93), rgba(25,36,50,.84)),
    radial-gradient(circle at 70% 30%, rgba(44,193,198,.24), transparent 34%),
    #2d3948;
  color: #fff; padding: 74px 0;
}
.sbp-migration .sbp-cta-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 56px; align-items: center; }
.sbp-migration .sbp-cta h2 { margin: 0 0 12px; color: #fff; font-size: 34px; font-weight: 300; line-height: 1.18; }
.sbp-migration .sbp-cta p { margin: 0; color: #d9e0e5; font-size: 16px; font-weight: 300; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .sbp-migration .sbp-features { grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
}

@media (max-width: 900px) {
  .sbp-migration .sbp-hero-grid,
  .sbp-migration .sbp-process,
  .sbp-migration .sbp-cta-grid { grid-template-columns: 1fr; gap: 34px; }
  .sbp-migration .sbp-hero h1 { font-size: 36px; }
  .sbp-migration .sbp-section { padding: 58px 0; }
  .sbp-migration .sbp-head h2 { font-size: 29px; }
  .sbp-migration .sbp-scope { grid-template-columns: 1fr; gap: 24px; }
  .sbp-migration .sbp-cta h2 { font-size: 28px; }
  /* The card drops below the pair rather than squeezing beside it. */
  .sbp-migration .sbp-showcase { grid-template-columns: 1fr; gap: 26px; }
  .sbp-migration .sbp-case { order: 2; max-width: 560px; margin-inline: auto; text-align: center; }
}

@media (max-width: 620px) {
  .sbp-migration .sbp-features { grid-template-columns: 1fr; }
  /* Two screenshots side by side stop being readable well before this; stacked,
     the Before/After captions carry the comparison instead of the position, and
     the arrow turns to point down the page. */
  .sbp-migration .sbp-shots { grid-template-columns: 1fr; gap: 18px; }
  /* Stacked, the badge stops floating and becomes a row of its own between the
     two shots. Centred on 50% it would land on the "After" caption, and no
     percentage is reliable once the two rows differ in height. */
  .sbp-migration .sbp-shot:first-of-type { order: 1; }
  .sbp-migration .sbp-shots-arrow {
    order: 2; position: static; transform: rotate(90deg); margin-inline: auto;
  }
  .sbp-migration .sbp-shot:last-of-type { order: 3; }
}

@media (max-width: 520px) {
  .sbp-migration .sbp-wrap { width: min(100% - 28px, 1200px); }
  .sbp-migration .sbp-hero h1 { font-size: 30px; }
}
