/* ==========================================================================
   Hero Guarantee Pattern (Results-Driven 20-Sales Campaign)
   Refined to strict WebWizBD brand identity:
   - High-definition 1080p animated isometric miniature city video
   - Seamless loop with native hardware acceleration (autoplay, muted, playsinline)
   - Soothing, multi-stop luminous gradients for premium typography
   - Clean sans-serif font system (Inter / Plus Jakarta Sans)
   - Zero !important specificity, zero layout shift (CLS).
   ========================================================================== */

.tp-hero-guarantee {
  position: relative;
  width: 100%;
  padding-top: 130px;
  padding-bottom: 40px;
  background: transparent;
  overflow: visible;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    height: 520px;
    background: radial-gradient(ellipse 65% 55% at 50% 20%, rgba(255, 217, 87, 0.18) 0%, rgba(255, 217, 87, 0.05) 60%, transparent 80%);
    pointer-events: none;
    z-index: 0;
  }

  /* Constrained layout centering */
  > .wp-block-group,
  &.is-layout-constrained > * {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
  }

  /* 01. Campaign Eyebrow Badge (Soothing Gradient Accent) */
  .tp-hero-guarantee__badge-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;

    .tp-hero-guarantee__badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 18px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(37, 99, 235, 0.18);
      box-shadow: 
        0 4px 16px -2px rgba(37, 99, 235, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: #0f1d33;
      letter-spacing: 0.01em;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

      &:hover {
        transform: translateY(-1px);
        border-color: rgba(37, 99, 235, 0.35);
        box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.14);
      }

      .tp-hero-guarantee__badge-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #2563eb;
      }

      .tp-hero-guarantee__badge-dot {
        color: #94a3b8;
        font-size: 11px;
      }

      .tp-hero-guarantee__badge-highlight {
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #4f46e5 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
      }
    }
  }

  /* 02. Headline with Soothing Luminous Multi-Stop Gradient */
  .tp-hero-guarantee__title {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f1d33;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: center;

    .tp-hero-guarantee__title-accent {
      background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 32%, #4f46e5 68%, #0ea5e9 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: inline-block;
    }
  }

  /* 03. Subtitle with Soothing Gradient Keyword Highlights */
  .tp-hero-guarantee__subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
    color: #475569;
    max-width: 740px;
    margin: 0 auto 34px auto;
    text-align: center;
    font-weight: 400;

    .tp-hero-kw--blue {
      background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4f46e5 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-weight: 600;
    }

    .tp-hero-kw--dark {
      color: #0f1d33;
      font-weight: 700;
      text-decoration: underline;
      text-decoration-color: rgba(37, 99, 235, 0.4);
      text-underline-offset: 3px;
    }
  }

  /* 04. Call to Action Buttons */
  .tp-hero-guarantee__btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;

    .tp-hero-btn-guarantee-primary {
      .wp-block-button__link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 16px 36px;
        border-radius: 999px;
        background: linear-gradient(135deg, #2563eb 0%, #3b82f6 40%, #1d4ed8 100%);
        color: #ffffff;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 
          0 10px 28px -4px rgba(37, 99, 235, 0.40),
          inset 0 1px 0 rgba(255, 255, 255, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.20);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                    background 0.25s ease;

        &:hover {
          transform: translateY(-2px);
          box-shadow: 
            0 16px 34px -4px rgba(37, 99, 235, 0.52),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
          background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #4f46e5 100%);
          color: #ffffff;
        }
      }
    }

    .tp-hero-btn-guarantee-secondary {
      .wp-block-button__link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 16px 32px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.90);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: #1e293b;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        border: 1.5px solid #cbd5e1;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

        &:hover {
          border-color: #2563eb;
          background: #ffffff;
          color: #0f1d33;
          transform: translateY(-2px);
          box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        }
      }
    }
  }

  /* 05. Animated Isometric Video Showcase */
  .tp-hero-guarantee__showcase-wrap {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    background: transparent;

    .tp-hero-guarantee__ambient-glow {
      position: absolute;
      top: 5%;
      left: 50%;
      transform: translateX(-50%);
      width: 85%;
      height: 75%;
      background: radial-gradient(ellipse at center, rgba(255, 217, 87, 0.22) 0%, rgba(255, 217, 87, 0.06) 50%, transparent 72%);
      pointer-events: none;
      z-index: 1;
      filter: blur(48px);
    }

    .tp-hero-video-wrap,
    .tp-hero-img-wrap {
      position: relative;
      width: 100%;
      max-width: 1080px;
      margin: 0 auto;
      background: transparent;
      overflow: visible;

      /* Isometric Miniature City Visual with Transparent Background */
      .tp-hero-video,
      .tp-hero-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1376 / 768;
        max-height: 640px;
        margin: 0 auto;
        object-fit: contain;
        background: transparent;
        outline: none;
        border: none;
        box-shadow: none;
        filter: contrast(1.02) brightness(1.01);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
      }

      .tp-hero-video {
        mix-blend-mode: multiply;
      }

      .tp-hero-img {
        mix-blend-mode: normal;
      }

      .tp-hero-guarantee__bottom-fade {
        display: none;
      }
    }
  }
}

/* 06. Responsive Refinements */
@media (max-width: 991px) {
  .tp-hero-guarantee {
    padding-top: 110px;
    padding-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .tp-hero-guarantee {
    padding-top: 90px;
    padding-bottom: 30px;

    .tp-hero-guarantee__title {
      font-size: clamp(23px, 6.2vw, 27px);
      line-height: 1.18;
      letter-spacing: -0.03em;
    }

    .tp-hero-guarantee__btns {
      flex-direction: column;
      width: 100%;
      padding: 0 20px;

      .wp-block-button {
        width: 100%;

        .wp-block-button__link {
          width: 100%;
          justify-content: center;
        }
      }
    }
  }
}

