/*
 * SEO Reseller landing page — the sections only this page renders.
 *
 * The shared components (hero, feature grid, card grid, checklist, rail) live
 * in landing.css, which this file loads on top of; the stats card, awards
 * marquee, flow, band and FAQ are the front page's and keep their rules in
 * assets/style.css. Everything below is scoped to .lp-page or .sr-*.
 */

/* Cards sit still for anyone who asked motion to stop. */
@media (prefers-reduced-motion: reduce) {
  .lp-card:hover,
    .lp-feature:hover,
    .sr-service:hover,
    .lp-checklist li:hover {
      transform: none;
    }
}

/* ---------- Stats ---------- */
.lp-page .sr-stats {
  padding-block: clamp(30px, 4vw, 56px);
}

.lp-page .sr-stats .stats-card {
  margin-top: 0;
  padding-block: clamp(38px, 4.5vw, 62px);
}

/* ---------- Collaborate ---------- */
.sr-collab-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(34px, 4vw, 56px);
}

.sr-collab-head .heading-main {
  font-size: clamp(30px, 3.6vw, 50px);
  margin-bottom: 28px;
}

.sr-collab-text {
  color: #5c6779;
  line-height: 1.8;
  margin: 6px 0 0;
}

.sr-collab-icon {
  display: inline-flex;
  color: #ff7a45;
  margin-bottom: 46px;
}

.sr-collab-icon .lp-icon {
  width: 42px;
  height: 42px;
}

/* .band paints its two white glows in ::after, which sits above .container in
   paint order — long headings ended up washed out under it. */
.lp-page .sr-band .container {
  z-index: 1;
}

/* ---------- Awards ---------- */
.lp-page .sr-awards .heading-main {
  font-size: clamp(28px, 3.6vw, 48px);
}

/* ---------- What is an SEO reseller ---------- */
.sr-whatis {
  position: relative;
  isolation: isolate;
  /* The white wash at the top-left keeps the band from reading as a flat slab
     and lets the framed screenshot sit on the lighter half. */
  background:
    radial-gradient(110% 90% at 8% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    var(--lp-soft);
  padding-block: clamp(58px, 7vw, 108px);
}

/* Dot grid, masked to a soft bloom behind the copy so it fades out rather than
   ending on a hard edge. Decorative only — never hit-tested. */
.sr-whatis::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(22, 104, 255, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(62% 58% at 82% 26%, #000 0%, transparent 72%);
  mask-image: radial-gradient(62% 58% at 82% 26%, #000 0%, transparent 72%);
  pointer-events: none;
}

.sr-whatis-inner {
  display: grid;
  /* the copy is much the longer column, so the art column stays the narrower */
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

/* Outlined panel offset behind the screenshot: gives the flat image depth
   without a drop shadow doing all the work. */
.sr-whatis-frame {
  position: relative;
  /* capped so the screenshot reads as a supporting figure rather than filling
     its half of the band; centred in the column it leaves behind */
  max-width: clamp(280px, 30vw, 420px);
  margin-inline: auto;
}

.sr-whatis-frame::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 1.8vw, 26px) calc(-1 * clamp(14px, 1.8vw, 26px))
    calc(-1 * clamp(14px, 1.8vw, 26px)) clamp(14px, 1.8vw, 26px);
  border: 1.5px solid rgba(22, 104, 255, 0.26);
  border-radius: var(--r-lg);
  pointer-events: none;
}

.sr-whatis-frame img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.sr-whatis-copy .heading-main {
  font-size: clamp(30px, 3.6vw, 50px);
  margin-bottom: 20px;
}

/* Short accent bar under the heading, echoing the eyebrow's blue rule. */
.sr-whatis-copy .heading-main::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin-top: 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--blue) 0%, rgba(22, 104, 255, 0.15) 100%);
}

.sr-whatis-copy p {
  margin: 0;
  color: #4a5364;
  line-height: 1.8;
}

/* Lifts the opening sentence into a lede without splitting the copy into two
   fields in the editor. ::first-line only accepts font/colour properties. */
.sr-whatis-copy p::first-line {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Services ---------- */
.sr-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin-top: clamp(32px, 4vw, 52px);
}

.sr-service {
  position: relative;
  padding: 34px 34px 44px;
  border-radius: var(--lp-card-r);
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-card-line);
  box-shadow: var(--lp-card-shadow);
  transition: var(--lp-lift);
}

.sr-service:hover {
  transform: translateY(-6px);
  border-color: var(--lp-card-line-hover);
  box-shadow: var(--lp-card-shadow-hover);
}

/* Outlined numeral: transparent fill over a 3px stroke, set in Poppins. Plus
   Jakarta Sans builds "5" from overlapping contours and a hollow stroke drew
   the seam between them as a notch — Poppins' digits are single contours.

   In flow rather than absolute, so the tall glyph can never sit on the title. */
.sr-service-num {
  display: block;
  font-family: var(--lp-num-font);
  font-weight: 600;
  font-size: clamp(64px, 6vw, 94.29px);
  letter-spacing: -3.81px;
  height: 66px;
  line-height: 66px;
  margin-bottom: 26px;
  color: transparent;
  /* was #d4d4dc against the old mauve fill; on white it needs the cooler,
     slightly darker stroke to hold the same weight */
  -webkit-text-stroke: 3px #cdd8ea;
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.32s ease;
}

.sr-service:hover .sr-service-num {
  -webkit-text-stroke-color: rgba(22, 104, 255, 0.4);
}

.sr-service h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sr-service p {
  margin: 0;
  color: #4a5364;
  line-height: 1.8;
  font-size: 15px;
}

.sr-process .lp-lead {
  margin-bottom: clamp(38px, 4.5vw, 66px);
}

/* ---------- Industries ---------- */
.sr-industries-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.sr-eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 4px;
  margin: 0 0 22px;
}

.sr-industries-head .heading-main {
  font-size: clamp(30px, 3.8vw, 52px);
  margin-bottom: 0;
}

/* The heading column is the taller of the two, so the copy is centred against
   it rather than sitting at the top of its own cell. */
.sr-industries-copy {
  align-self: center;
}

.sr-industries-copy p {
  color: #5c6779;
  line-height: 1.8;
}

.sr-industries-copy p:last-child {
  margin-bottom: 0;
}

.sr-industry {
  position: relative;
  flex: 0 0 clamp(280px, 26vw, 400px);
  /* half the numeral's line box, so the glyph straddles the card's top edge */
  padding-top: 33px;
}

/* Same outlined recipe, centred on the card's top edge — half the glyph on the
   white section, half over the photo — so the stroke is a mid grey that reads
   against both. */
.sr-industry-num {
  position: absolute;
  z-index: 2;
  top: 0;
  left: clamp(20px, 2.4vw, 40px);
  height: 66px;
  line-height: 66px;
  font-family: var(--lp-num-font);
  font-weight: 600;
  font-size: clamp(58px, 5.4vw, 84px);
  letter-spacing: -3.4px;
  color: transparent;
  -webkit-text-stroke: 2.5px #9aa2b1;
  pointer-events: none;
}

.sr-industry-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  /* only ever seen while a photo loads or if one is missing — keyed to the
     theme blue instead of the stock purple it shipped with */
  background: linear-gradient(150deg, #0d2f6b 0%, #1668ff 100%);
  display: flex;
  align-items: flex-end;
}

.sr-industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.62) 100%);
}

.sr-industry-card img {
  -webkit-user-drag: none;
  user-select: none;
}

.sr-industry-card h3 {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px 24px;
  text-align: center;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ---------- Why agencies trust us ---------- */
.sr-trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

/* Same treatment as .faq-left: the copy pins while the taller card grid
   scrolls past. Offset clears the position:fixed .site-header. */
.sr-trust-copy {
  position: sticky;
  top: clamp(96px, 9vw, 124px);
  align-self: start;
}

.sr-trust-copy .heading-main {
  font-size: clamp(30px, 3.6vw, 50px);
  margin-bottom: 20px;
}

.sr-trust-copy p {
  color: #5c6779;
  line-height: 1.8;
  margin-bottom: 34px;
}

.sr-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 3vw, 54px);
  row-gap: clamp(28px, 3vw, 48px);
}

/* the design separates the cells with hairlines rather than cards */
.sr-trust-grid li {
  padding: 0 0 clamp(26px, 3vw, 44px) clamp(0px, 1vw, 18px);
  border-bottom: 1px solid #e6e8ee;
}

.sr-trust-grid li:nth-child(odd) {
  border-right: 1px solid #e6e8ee;
  padding-right: clamp(20px, 2vw, 40px);
}

/* the grid is two across, so the final row is the last two cells */
.sr-trust-grid li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.sr-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lp-indigo-soft);
  color: var(--lp-indigo);
  margin-bottom: 18px;
  transition:
    transform 0.32s ease,
    background-color 0.32s ease;
}

/* The cells are separated by hairlines, not cards, so there is nothing to lift
   — the icon alone answers the hover. */
.sr-trust-grid li:hover .sr-trust-icon {
  transform: translateY(-4px);
  background: #dedafd;
}

.sr-trust-icon .lp-icon,
.sr-trust-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.sr-trust-grid h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sr-trust-grid p {
  margin: 0;
  color: #5c6779;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Justified body copy ----------
   The shared selectors moved to landing.css; these are this page's own. */
.sr-collab-text,
.sr-whatis-copy p,
.sr-industries-copy p,
.sr-trust-copy p,
.sr-service p,
.sr-trust-grid p {
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
  hyphens: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sr-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sr-whatis-inner,
  .sr-collab-head,
  .sr-industries-head,
  .sr-trust-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Stacked order puts the artwork between the heading and the body copy: the
     copy wrapper goes display:contents so its children become grid items that
     can be reordered around the sibling art column. */
  .sr-whatis-inner {
    gap: 0;
  }

  .sr-whatis-copy {
    display: contents;
  }

  .sr-whatis-copy .heading-main {
    order: -2;
  }

  .sr-whatis-art {
    margin-bottom: 28px;
  }

  .sr-trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The offset panel would push a horizontal scrollbar once the columns stack
     and the image spans the full gutter width. */
  .sr-whatis-frame::before {
    display: none;
  }

  .sr-trust-grid li:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  /* Single column here — nothing to scroll past, so the pin is released and
     the copy sits flush above the grid again. */
  .sr-trust-copy {
    position: static;
  }

  .sr-industries-copy {
    align-self: start;
  }
}

@media (max-width: 640px) {
  .sr-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-page .sr-stats .stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  /* Phone measure is ~35 characters — too short to justify without visible
     word gaps, so the copy goes back to ragged-right here. */
  .sr-collab-text,
  .sr-whatis-copy p,
  .sr-industries-copy p,
  .sr-trust-copy p,
  .sr-service p,
  .sr-trust-grid p {
    text-align: left;
    hyphens: manual;
  }
}
