/*
 * Service inner-page banner — follows the Figma service banner.
 * Proportions are taken from the 1920px Figma frame and scale fluidly.
 * Loaded on service pages and the home page (see includes/head.php).
 */
.svc-hero {
  --cut-h: clamp(72px, 6.15vw, 118px);
  --cut-bg: #fff;                         /* matches the section below the banner */
  --svc-bg: #ff8a00;
  --mark-filter: brightness(0) invert(1);
  --mark-opacity: .85;
  padding: 0 10px;
  background: var(--cut-bg);
}
.svc-hero__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(600px, 37.8vw, 760px);
  padding: clamp(150px, 10.5vw, 200px) 24px calc(var(--cut-h) + clamp(32px, 3vw, 56px));
  border-radius: 0 0 32px 32px;
  background: var(--svc-bg);
  color: #fff;
  text-align: center;
}

/* Service photo, blended into the brand colour on the right */
.svc-hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: .5;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 92%);
  mask-image: linear-gradient(to left, #000 30%, transparent 92%);
}
.svc-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 52%, rgba(0, 0, 0, .16), transparent 72%);
  pointer-events: none;
}

/* Announcement tab hanging from the top edge */
.svc-hero__tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 30px 12px;
  border-radius: 0 0 20px 20px;
  background: #1b1c1f;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.svc-hero__tab::before,
.svc-hero__tab::after {
  content: "";
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
}
.svc-hero__tab::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 17.5px, #1b1c1f 18px); }
.svc-hero__tab::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 17.5px, #1b1c1f 18px); }
.svc-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

/* Decorative flight path, sparkles and platform marks */
.svc-hero__flight {
  position: absolute;
  top: clamp(10px, 2.2vw, 42px);
  left: 0;
  width: clamp(220px, 29vw, 560px);
  height: auto;
  color: rgba(255, 255, 255, .92);
  z-index: 0;
  pointer-events: none;
}
.svc-hero__spark {
  position: absolute;
  z-index: 0;
  width: clamp(30px, 2.4vw, 46px);
  height: clamp(30px, 2.4vw, 46px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35);
  color: #fff;
  pointer-events: none;
}
.svc-hero__spark svg { width: 48%; height: 48%; }
.svc-hero__spark--1 { top: 29%; left: 26%; }
.svc-hero__spark--2 { top: 70%; left: 8.5%; }
.svc-hero__spark--3 { top: 17%; left: 78.5%; }

.svc-hero__mark {
  position: absolute;
  z-index: 0;
  width: clamp(28px, 3.1vw, 60px);
  height: clamp(28px, 3.1vw, 60px);
  object-fit: contain;
  filter: var(--mark-filter);
  opacity: var(--mark-opacity);
  pointer-events: none;
}
.svc-hero__mark--1 { top: 22%; left: 6%; transform: rotate(-18deg); }
.svc-hero__mark--2 { top: 16%; right: 8%; transform: rotate(22deg); }
.svc-hero__mark--3 { top: 76%; left: 16%; transform: rotate(12deg) scale(.85); }
.svc-hero__mark--4 { top: 60%; right: 6%; transform: rotate(-14deg); }

/* Headline, intro and buttons */
.svc-hero__content { position: relative; z-index: 1; max-width: 1000px; }
.svc-hero__title {
  margin: 0 auto;
  max-width: 18em;
  font-size: clamp(2rem, 1.1rem + 2.6vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}
.svc-hero__text {
  margin: clamp(16px, 1.3vw, 24px) auto clamp(24px, 1.8vw, 34px);
  max-width: 760px;
  font-size: clamp(15px, .55rem + .45vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}
.svc-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.svc-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-hero__btn:hover { transform: translateY(-2px); }
.svc-hero__btn--dark {
  background: linear-gradient(180deg, #2e2f33 0%, #111214 100%);
  color: #fff;
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.svc-hero__btn--light {
  background: #fff;
  color: #111214;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45);
}

/* Platform badge tile, bottom left */
.svc-hero__badge {
  position: absolute;
  left: 14%;
  bottom: clamp(16px, 1.6vw, 30px);
  z-index: 1;
  width: clamp(64px, 6.1vw, 118px);
  height: clamp(64px, 6.1vw, 118px);
  padding: clamp(10px, 1vw, 20px);
  border-radius: clamp(14px, 1vw, 20px);
  background: #fff;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5);
}
.svc-hero__badge img { width: 100%; height: 100%; object-fit: contain; }

/* Bottom-right cut-out holding the review-site logo strip */
.svc-hero__cut {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 50.5%;
  z-index: 2;
  height: var(--cut-h);
  background: var(--cut-bg);
  display: flex;
  align-items: center;
}
/* The curved edges are single SVG paths (not stacked boxes), so they stay
   smooth at every size. Each overlaps the strip by 1px to avoid hairline seams. */
.svc-hero__cut-edge,
.svc-hero__cut-corner {
  position: absolute;
  display: block;
  fill: var(--cut-bg);
  pointer-events: none;
}
.svc-hero__cut-edge {                    /* slanted, rounded left edge */
  bottom: 0;
  right: calc(100% - 1px);
  height: var(--cut-h);
  width: calc(var(--cut-h) * 1.12);
}
.svc-hero__cut-corner {                  /* rounded panel corner above the strip */
  right: 0;
  bottom: calc(100% - 1px);
  width: 32px;
  height: 32px;
}

/* Review-site logos: continuous auto-sliding carousel */
.svc-hero__logos {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  margin-right: clamp(16px, 2vw, 40px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.svc-hero__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: svc-logos 32s linear infinite;
  will-change: transform;
}
.svc-hero__logos:hover .svc-hero__track,
.svc-hero__logos:focus-within .svc-hero__track { animation-play-state: paused; }
@keyframes svc-logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* margin (not gap) keeps both halves of the track exactly equal, so the loop has no jump */
.svc-hero__track a { display: flex; flex: none; margin-right: clamp(32px, 3.2vw, 60px); }
.svc-hero__logos img {
  height: clamp(20px, 1.9vw, 36px);
  width: auto;
  max-width: clamp(64px, 7vw, 130px);
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
  opacity: .72;
  transition: opacity .2s ease, filter .2s ease;
}
.svc-hero__logos a:hover img { filter: none; opacity: 1; }

/* Service colours (from the Figma banners) */
.svc-hero--amazon  { --svc-bg: linear-gradient(135deg, #ff9a1f 0%, #ff8200 100%); --mark-filter: brightness(0); --mark-opacity: .78; }
.svc-hero--etsy    { --svc-bg: linear-gradient(135deg, #ff9a1f 0%, #f7820a 100%); }
.svc-hero--shopify { --svc-bg: radial-gradient(120% 140% at 88% 92%, #8cc63f 0%, #3f8f2f 34%, #104a23 64%, #0a3217 100%); }
.svc-hero--tiktok  { --svc-bg: radial-gradient(circle at 7% 26%, rgba(37, 244, 238, .38), transparent 24%), radial-gradient(circle at 93% 72%, rgba(254, 44, 85, .4), transparent 26%), radial-gradient(circle at 96% 8%, rgba(37, 244, 238, .3), transparent 18%), #000; }
.svc-hero--walmart { --svc-bg: linear-gradient(160deg, #1d4dff 0%, #0b2fe0 52%, #0721b4 100%); }
.svc-hero--ebay    { --svc-bg: linear-gradient(150deg, #6192f2 0%, #3d71e2 48%, #2c5bd0 100%); }
.svc-hero--youtube { --svc-bg: linear-gradient(135deg, #ff1f1f 0%, #e50000 100%); }
.svc-hero--home    { --svc-bg: linear-gradient(150deg, #4a95ff 0%, #2c7cf1 46%, #175bcc 100%); }   /* site brand blue */
.svc-hero--tiktok .svc-hero__photo { opacity: .42; }
/* The TikTok icon is a white note on a black disc: screen-blend drops the disc
   into the background so only the white note shows (a white-silhouette filter
   would turn it into a plain white circle). */
.svc-hero--tiktok .svc-hero__mark { filter: none; mix-blend-mode: screen; }

/* Header sits below the announcement tab on service pages */
@media (min-width: 768px) {
  .page-service .site-header,
  .has-svc-hero .site-header { padding-top: 54px; }
}

/* Tablet */
@media (max-width: 1023px) {
  .svc-hero__tab { font-size: 12px; padding: 9px 22px 10px; }
  .svc-hero__badge { left: 6%; }
  .svc-hero__cut { left: 46%; }
}

/* Phone: the cut-out becomes a full-width strip under the content */
@media (max-width: 767px) {
  .svc-hero { padding: 0 8px; }
  .svc-hero__panel {
    min-height: 0;
    justify-content: flex-start;
    padding: 124px 18px 0;
    border-radius: 0 0 24px 24px;
  }
  .svc-hero__tab, .svc-hero__badge,
  .svc-hero__mark--3, .svc-hero__mark--4, .svc-hero__spark--1 { display: none; }
  .svc-hero__photo {
    width: 100%;
    opacity: .28;
    -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 85%);
    mask-image: linear-gradient(to top, #000 20%, transparent 85%);
  }
  .svc-hero__flight { top: 92px; width: 200px; opacity: .6; }
  .svc-hero__mark--1 { top: 16%; }
  .svc-hero__mark--2 { top: 14%; }
  .svc-hero__spark--2 { top: auto; bottom: 110px; left: 5%; }
  .svc-hero__spark--3 { top: 20%; left: auto; right: 18%; }
  .svc-hero__btn { height: 48px; padding: 0 22px; font-size: 14px; }
  .svc-hero__actions { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .svc-hero__cut {
    position: relative;
    left: auto;
    height: auto;
    width: calc(100% + 36px);
    margin: 40px -18px 0;
    padding: 20px 0;
    border-radius: 22px 22px 0 0;
  }
  .svc-hero__cut-edge, .svc-hero__cut-corner { display: none; }
  .svc-hero__logos { margin-right: 0; }
  .svc-hero__track { animation-duration: 22s; }
  .svc-hero__track a { margin-right: 32px; }
  .svc-hero__logos img { height: 24px; max-width: 100px; }
}
