/* Makes the pages ported from the Astro project wear the live site's look:
   Poppins headings, Roboto body, photo hero with a dark overlay, orange buttons.
   Copied to site/assets/sl/overrides.css by tools/port_astro.py. */

.sl-page {
  --font-heading: "Poppins", sans-serif;
  --font-body: "Roboto", -apple-system, "Segoe UI", sans-serif;
  --header-height: 0px;
  font-family: var(--font-body);
  color: #585858;
  display: block;
}

/* undo Elementor kit rules that reach into the page body */
.sl-page a { font-family: inherit; font-size: inherit; }
.sl-page button { background-color: transparent; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; border-radius: 0; text-shadow: none; }
.sl-page button:hover, .sl-page button:focus { background-color: transparent; color: inherit; }

.sl-page h1, .sl-page h2, .sl-page h3, .sl-page h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0;
  color: #333333;
}
.sl-page .reveal { opacity: 1; transform: none; }

/* buttons: the live site's orange */
.sl-page .btn { font-family: "Roboto", sans-serif; font-weight: 500; border-radius: 5px; }
.sl-page .btn-primary, .sl-page .btn--primary, .sl-page button.btn-primary {
  background-color: #E16F14; color: #fff; box-shadow: none;
}
.sl-page .btn-primary:hover, .sl-page .btn--primary:hover, .sl-page button.btn-primary:hover {
  background-color: #E48E49; color: #fff; box-shadow: none;
}

/* hero: same photo + 75% black overlay as the live service pages */
.sl-page .service-hero, .sl-page .guide-hero, .sl-page .checker-hero, .sl-page .services-hub-hero {
  position: relative;
  background: #1a1a1a url("/wp-content/uploads/2020/01/about-bg-img.jpg") center center / cover no-repeat !important;
  border-bottom: 0 !important;
  padding: 150px 30px 70px !important; /* the ported page CSS sets its own, more specific, padding */
  text-align: center;
}
.sl-page .service-hero::before, .sl-page .guide-hero::before, .sl-page .checker-hero::before, .sl-page .services-hub-hero::before {
  content: ""; position: absolute; inset: 0; background: #000; opacity: .75;
  width: auto; height: auto; border-radius: 0; top: 0; right: 0;
}
.sl-page .service-hero > .wrap, .sl-page .guide-hero > .wrap, .sl-page .checker-hero > .wrap, .sl-page .services-hub-hero > .wrap {
  position: relative; z-index: 1; max-width: 860px;
}
.sl-page .service-hero h1, .sl-page .guide-hero h1, .sl-page .checker-hero h1, .sl-page .services-hub-hero h1 {
  color: #fff; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.15; max-width: none; margin-inline: auto;
}
.sl-page .service-hero .eyebrow, .sl-page .guide-hero .eyebrow, .sl-page .checker-hero .eyebrow, .sl-page .services-hub-hero .eyebrow {
  color: #fff; justify-content: center;
}
.sl-page .service-hero .crumbs, .sl-page .guide-hero .crumbs, .sl-page .checker-hero .crumbs, .sl-page .services-hub-hero .crumbs {
  justify-content: center; color: rgba(255,255,255,.7);
}
.sl-page .service-hero .crumbs a, .sl-page .guide-hero .crumbs a, .sl-page .checker-hero .crumbs a, .sl-page .services-hub-hero .crumbs a { color: rgba(255,255,255,.7); }
.sl-page .service-hero .crumbs [aria-current=page], .sl-page .guide-hero .crumbs [aria-current=page],
.sl-page .checker-hero .crumbs [aria-current=page], .sl-page .services-hub-hero .crumbs [aria-current=page] { color: #fff; }
.sl-page .service-hero p, .sl-page .guide-hero p, .sl-page .checker-hero p, .sl-page .services-hub-hero p,
.sl-page .service-hero .lead, .sl-page .guide-hero .lead, .sl-page .checker-hero .lead, .sl-page .services-hub-hero .lead {
  color: #fff; margin-inline: auto;
}
.sl-page .services-hub-hero .section-head { margin-inline: auto; }

/* calculator pages open with the tool: the heading block becomes the same dark photo band,
   full width, so the site's white header stays readable */
.sl-page { overflow-x: clip; }
.sl-page > .calc-section:first-child { padding-top: 0; }
.sl-page > .calc-section:first-child .calc-head {
  position: relative; max-width: none; text-align: center;
  padding: 150px 0 64px; margin-bottom: 48px;
}
.sl-page > .calc-section:first-child .calc-head::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.75)), #1a1a1a url("/wp-content/uploads/2020/01/about-bg-img.jpg") center center / cover no-repeat;
}
.sl-page > .calc-section:first-child .calc-head > * { position: relative; z-index: 1; }
.sl-page > .calc-section:first-child .calc-head h1 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); }
.sl-page > .calc-section:first-child .calc-head .eyebrow { color: #fff; justify-content: center; }
.sl-page > .calc-section:first-child .calc-head .lead { color: #fff; max-width: 640px; margin-inline: auto; }

@media (max-width: 767px) {
  .sl-page .service-hero, .sl-page .guide-hero, .sl-page .checker-hero, .sl-page .services-hub-hero { padding: 130px 20px 50px !important; }
  .sl-page > .calc-section:first-child .calc-head { padding: 120px 0 44px; margin-bottom: 32px; }
}

.sl-page .checker-hero .checker-lead { color: #fff; }

/* homepage services + tools block (tools/home_block.html) */
.sl-home-block { background: #fff; }
.sl-home-block .section { padding-block: 80px; }
.sl-home-block .section-head { max-width: 800px; margin: 0 auto 44px; text-align: center; }
.sl-home-block .section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.sl-home-block .section-head p { font-size: 17px; line-height: 1.65; }
.sl-home-block .service-card h3, .sl-home-block .tool-card h3 { font-size: 21px; margin-bottom: 12px; }
.sl-home-block .tool-card p { font-size: 15.5px; color: #585858; margin: 0; }
.sl-home-block .sl-home-more { text-align: center; margin: 40px 0 0; }
.sl-home-block .sl-home-tools-head { margin-top: 80px; }
.sl-home-block .sl-home-local { text-align: center; margin: 40px auto 0; max-width: 720px; }
.sl-home-block .sl-home-local a { color: #4175FC; text-decoration: underline; }
@media (max-width: 900px) { .sl-home-block .grid--3 { grid-template-columns: 1fr; } }

/* ===== Enhanced service pages (frontmatter `enhanced: true`): results strip, flow diagram,
   framed screenshot, callout quote, process timeline. Motion is opt-in via html.sx-motion,
   which the page script only sets when reduced-motion is off. ===== */
.sl-page .sx-stats { background: #F3F5F5; padding: 44px 0 48px; }
.sl-page .sx-stats-title { text-align: center; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; color: #585858; margin: 0 0 22px; }
.sl-page .sx-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sl-page .sx-stat { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: 10px; padding: 26px 20px 22px; text-decoration: none; box-shadow: 0 2px 14px rgba(0,0,0,.06); transition: transform .25s ease, box-shadow .25s ease; }
.sl-page .sx-stat:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.sl-page .sx-stat-value { font-family: "Poppins", sans-serif; font-weight: 600; font-size: clamp(36px, 4.4vw, 52px); line-height: 1; color: #4175FC; font-variant-numeric: tabular-nums; }
.sl-page .sx-stat-label { margin-top: 10px; font-size: 16px; color: #333; }
.sl-page .sx-stat-client { margin-top: 4px; font-size: 14px; color: #7A7D82; }

.sl-page .service-enhanced blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border: 0; border-left: 4px solid #E16F14; background: none; border-radius: 0; }
.sl-page .service-enhanced blockquote p { font-family: "Poppins", sans-serif; font-weight: 600; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.35; color: #333; margin: 0; }

.sl-page .sx-flow { margin: 38px 0 42px; padding: 28px 26px 22px; background: #F3F5F5; border-radius: 12px; display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; align-items: center; gap: 0 6px; }
.sl-page .sx-flow-step { background: #fff; border-radius: 10px; padding: 18px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); align-self: stretch; }
.sl-page .sx-flow p.sx-flow-head { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 14.5px; line-height: 1.3; color: #333; margin: 0 0 12px; }
.sl-page .sx-flow p.sx-flow-bubble { margin: 0; font-size: 15px; line-height: 1.45; color: #333; background: #E9EFFF; border-radius: 12px 12px 12px 2px; padding: 11px 13px; }
.sl-page .sx-flow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sl-page .sx-flow ul li { margin: 0; padding: 7px 11px; font-size: 14px; line-height: 1.3; color: #585858; border: 1px solid #E4E7EA; border-radius: 7px; background: #fff; }
.sl-page .sx-flow ul li::before { content: none; }
.sl-page .sx-flow .sx-flow-answer li.is-you { border-color: #E16F14; color: #333; font-weight: 600; box-shadow: 0 0 0 3px rgba(225,111,20,.14); }
.sl-page .sx-flow-arrow { height: 2px; background: #4175FC; position: relative; }
.sl-page .sx-flow-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #4175FC; border-right: 2px solid #4175FC; transform: translateY(-50%) rotate(45deg); }
.sl-page .sx-flow figcaption, .sl-page .sx-shot figcaption { grid-column: 1 / -1; margin-top: 16px; font-size: 14px; line-height: 1.5; color: #7A7D82; text-align: center; }

.sl-page .sx-shot { margin: 34px 0 40px; }
.sl-page .sx-shot-frame { border: 1px solid #E4E7EA; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.10); background: #F3F5F5; }
.sl-page .sx-shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #E4E7EA; }
.sl-page .sx-shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #D5DAE0; }
.sl-page .sx-shot img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 0; border: 0; box-shadow: none; }
.sl-page .sx-shot-frame { background: #fff; }

/* process steps as a timeline */
.sl-page .service-enhanced ol { list-style: none; counter-reset: sx-step; margin: 26px 0 30px; padding: 0; position: relative; }
.sl-page .service-enhanced ol::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: #E4E7EA; }
.sl-page .service-enhanced ol > li { counter-increment: sx-step; position: relative; margin: 0 0 22px; padding: 0 0 0 62px; }
.sl-page .service-enhanced ol > li:last-child { margin-bottom: 0; }
.sl-page .service-enhanced ol > li::before { content: counter(sx-step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: #4175FC; color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 17px; line-height: 40px; text-align: center; opacity: 1; }
.sl-page .service-enhanced ol > li p { margin: 0; }

/* motion */
html.sx-motion .sl-page .sx-stats .sx-stat,
html.sx-motion .sl-page .sx-flow .sx-flow-step,
html.sx-motion .sl-page .sx-flow .sx-flow-arrow,
html.sx-motion .sl-page .sx-shot,
html.sx-motion .sl-page .service-enhanced blockquote,
html.sx-motion .sl-page .service-enhanced ol > li { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.sx-motion .sl-page .sx-flow .sx-flow-arrow { transform: scaleX(0); transform-origin: left center; }
html.sx-motion .sl-page .sx-stats.sx-in .sx-stat,
html.sx-motion .sl-page .sx-flow.sx-in .sx-flow-step,
html.sx-motion .sl-page .sx-shot.sx-in,
html.sx-motion .sl-page .service-enhanced blockquote.sx-in,
html.sx-motion .sl-page .service-enhanced ol > li.sx-in { opacity: 1; transform: none; }
html.sx-motion .sl-page .sx-flow.sx-in .sx-flow-arrow { opacity: 1; transform: scaleX(1); }
html.sx-motion .sl-page .sx-stats.sx-in .sx-stat:nth-child(2) { transition-delay: .12s; }
html.sx-motion .sl-page .sx-stats.sx-in .sx-stat:nth-child(3) { transition-delay: .24s; }
html.sx-motion .sl-page .sx-flow.sx-in > :nth-child(2) { transition-delay: .25s; }
html.sx-motion .sl-page .sx-flow.sx-in > :nth-child(3) { transition-delay: .45s; }
html.sx-motion .sl-page .sx-flow.sx-in > :nth-child(4) { transition-delay: .7s; }
html.sx-motion .sl-page .sx-flow.sx-in > :nth-child(5) { transition-delay: .9s; }

@media (max-width: 860px) {
  .sl-page .sx-stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .sl-page .sx-flow { grid-template-columns: 1fr; padding: 20px 16px 18px; }
  .sl-page .sx-flow-arrow { width: 2px; height: 26px; justify-self: center; margin: 4px 0; }
  .sl-page .sx-flow-arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  html.sx-motion .sl-page .sx-flow .sx-flow-arrow { transform: scaleY(0); transform-origin: center top; }
  html.sx-motion .sl-page .sx-flow.sx-in .sx-flow-arrow { transform: scaleY(1); }
}

/* un-framed variant for images that already sit in a device mockup */
.sl-page .sx-shot--plain .sx-shot-frame { box-shadow: none; background: #fff; border-radius: 12px; padding: 26px 24px 8px; }
.sl-page .sx-shot--plain img { max-width: 560px; margin: 0 auto; }
.sl-page .sx-shot figcaption a { color: #4175FC; text-decoration: underline; }
