/*--------------------------------------------------------------
# HERO MINIMAL (THEBLUR.IO AESTHETIC)
# 56px 3-Line Headline, Refined Pill Buttons & Town Showcase Visual
--------------------------------------------------------------*/

.wp-block-group.tp-hero-min,
.tp-hero-min {
  position: relative;
  width: 100%;
  padding-top: clamp(145px, 16vh, 185px);
  padding-bottom: clamp(60px, 8vh, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background: transparent;
  overflow: visible;

  .tp-hero-min__container {
    max-width: 1140px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  /* Campaign Eyebrow Badge - Transparent Glassmorphism */
  .tp-hero-min__badge-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 16px auto;

    .tp-hero-min__badge,
    .tp-hero-guarantee__badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3.5px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.22);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.65);
      box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.85),
        0 2px 8px rgba(15, 23, 42, 0.04);
      font-family: var(--tp-ff-body, 'Inter', sans-serif);
      font-size: 11.5px;
      font-weight: 500;
      color: #475569;
      letter-spacing: 0.01em;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

      &:hover {
        background: rgba(255, 255, 255, 0.38);
        border-color: rgba(255, 255, 255, 0.9);
        color: #1e293b;
        box-shadow: 
          inset 0 1px 1.5px rgba(255, 255, 255, 0.95),
          0 4px 14px rgba(15, 23, 42, 0.06);
        transform: translateY(-1px);
      }

      .tp-hero-min__badge-icon,
      .tp-hero-guarantee__badge-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #475569;
        opacity: 0.9;
      }

      .tp-hero-min__badge-text {
        color: #475569;
      }

      .tp-hero-min__badge-dot,
      .tp-hero-guarantee__badge-dot {
        color: #94a3b8;
        font-size: 8px;
        opacity: 0.85;
      }

      .tp-hero-min__badge-highlight,
      .tp-hero-guarantee__badge-highlight {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: initial;
        background-clip: unset;
        color: #1e293b;
        font-weight: 600;
      }
    }
  }

  /* 3-Line Centered Headline (56px) */
  .tp-hero-min__title {
    font-family: var(--tp-ff-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #0f172a;
    margin: 0 auto;
    max-width: 1040px;
    text-align: center;

    .tp-hero-min__line {
      display: inline-block;

      &.tp-hero-min__line--1 {
        /* Longest line */
        font-weight: 800;
      }

      &.tp-hero-min__line--2 {
        font-weight: 800;
      }

      &.tp-hero-min__line--3 {
        /* Shortest line: Business. */
        font-weight: 800;
      }
    }

    .tp-hero-min__accent {
      font-family: var(--tp-ff-serif-accent);
      font-style: italic;
      font-weight: 500;
      color: #0f172a;
      letter-spacing: -0.02em;
      position: relative;
      display: inline-block;
      padding: 0 4px;
    }
  }

  /* Buttons Container */
  .tp-hero-min__btns-wrap {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
    width: 100%;
  }

  /* 04. Compact Isometric Town Showcase Visual */
  .tp-hero-min__showcase-wrap {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    background: transparent;

    .tp-hero-min__ambient-glow {
      position: absolute;
      top: 10%;
      left: 50%;
      transform: translateX(-50%);
      width: 80%;
      height: 70%;
      background: radial-gradient(ellipse at center, rgba(255, 217, 87, 0.28) 0%, rgba(37, 99, 235, 0.09) 50%, transparent 74%);
      pointer-events: none;
      z-index: 1;
      filter: blur(44px);
    }

    .tp-hero-min__img-wrap {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      background: transparent;

      .tp-hero-min__img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1376 / 768;
        max-height: 380px;
        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;
      }
    }
  }
}

/* --------------------------------------------------------------------------
   Redesigned Hero Pill Buttons (Robust Native CSS Specificity)
   -------------------------------------------------------------------------- */
.tp-hero-min-btn,
button.tp-hero-min-btn,
a.tp-hero-min-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--tp-ff-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  outline: none;
  line-height: 1;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Primary Pill Button: Solid White Pill with Blue Circular Arrow (theBlur.io Aesthetic) */
.tp-hero-min-btn--primary,
button.tp-hero-min-btn--primary,
.tp-hero-min .tp-hero-min-btn--primary {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 10px 26px -4px rgba(15, 23, 42, 0.10),
    0 2px 6px rgba(15, 23, 42, 0.04);
  gap: 10px;

  .tp-hero-min-btn__text {
    color: #0f172a;
    font-weight: 700;
  }

  .tp-hero-min-btn__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;

    svg {
      color: #ffffff;
      stroke: #ffffff;
      transition: transform 0.25s ease;
    }
  }

  &:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow:
      0 16px 36px -6px rgba(37, 99, 235, 0.22),
      0 4px 10px rgba(15, 23, 42, 0.06);

    .tp-hero-min-btn__icon {
      background: #1d4ed8;

      svg {
        transform: translate(1.5px, -1.5px);
      }
    }
  }

  &:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  }
}

/* Secondary Pill Button: Frosted Glass / Translucent Outline Pill */
.tp-hero-min-btn--secondary,
a.tp-hero-min-btn--secondary,
.tp-hero-min .tp-hero-min-btn--secondary {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #0f172a;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);

  .tp-hero-min-btn__text {
    color: #0f172a;
    font-weight: 600;
  }

  &:hover {
    background: #ffffff;
    border-color: #0f172a;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow:
      0 12px 28px -6px rgba(15, 23, 42, 0.09),
      0 2px 6px rgba(15, 23, 42, 0.03);
  }

  &:active {
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .wp-block-group.tp-hero-min,
  .tp-hero-min {
    padding-top: 140px;
    padding-bottom: 50px;

    .tp-hero-min__badge-wrap {
      margin-bottom: 14px;
    }

    .tp-hero-min__title {
      font-size: clamp(34px, 5.2vw, 46px);
      line-height: 1.18;
    }

    .tp-hero-min__showcase-wrap {
      margin-top: 32px;
      max-width: 520px;
    }
  }
}

@media (max-width: 640px) {
  .wp-block-group.tp-hero-min,
  .tp-hero-min {
    padding-top: calc(84px + env(safe-area-inset-top, 0px));
    padding-bottom: 32px;

    .tp-hero-min__badge-wrap {
      margin-bottom: 12px;
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .tp-hero-min__badge,
    .tp-hero-guarantee__badge {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      font-size: 9.5px;
      line-height: 1.25;
      padding: 3px 12px;
      gap: 1.5px 5px;
      border-radius: 999px;
      width: auto;
      max-width: 220px;
      margin: 0 auto;
      text-align: center;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);

      .tp-hero-min__badge-icon,
      .tp-hero-guarantee__badge-icon {
        display: inline-flex;
        align-items: center;

        svg {
          width: 9.5px;
          height: 9.5px;
        }
      }

      .tp-hero-min__badge-text {
        font-size: 9px;
        font-weight: 500;
        color: #475569;
      }

      .tp-hero-min__badge-dot,
      .tp-hero-guarantee__badge-dot {
        display: none;
      }

      .tp-hero-min__badge-highlight,
      .tp-hero-guarantee__badge-highlight {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 9.5px;
        font-weight: 700;
        color: #0f172a;
        letter-spacing: -0.01em;
      }
    }

    .tp-hero-min__title {
      font-size: clamp(23px, 6.2vw, 27px);
      line-height: 1.18;
      letter-spacing: -0.03em;
      max-width: 330px;
      margin-left: auto;
      margin-right: auto;
      text-wrap: balance;

      .tp-hero-min__line {
        display: inline;
      }

      .tp-hero-min__br {
        display: none;
      }

      .tp-hero-min__accent {
        padding: 0 2px;
      }
    }

    .tp-hero-min__btns-wrap {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      width: 100%;
      max-width: 300px;
      margin: 16px auto 0 auto;
      gap: 8px;

      .tp-hero-min-btn,
      button.tp-hero-min-btn,
      a.tp-hero-min-btn {
        flex: 0 1 auto;
        width: auto;
        max-width: none;
        height: 38px;
        padding: 0 16px;
        font-size: 12.5px;
        font-weight: 600;
        letter-spacing: -0.01em;
        gap: 6px;
        box-shadow:
          0 4px 14px -2px rgba(15, 23, 42, 0.07),
          0 1px 3px rgba(15, 23, 42, 0.03);

        .tp-hero-min-btn__icon {
          width: 20px;
          height: 20px;

          svg {
            width: 9.5px;
            height: 9.5px;
          }
        }

        .tp-hero-min-btn__text {
          font-size: 12.5px;
        }
      }
    }

    .tp-hero-min__showcase-wrap {
      margin-top: 18px;
      max-width: 100%;
      padding: 0 12px;

      .tp-hero-min__img-wrap {
        max-width: 300px;
        margin: 0 auto;

        .tp-hero-min__img {
          max-height: 195px;
        }
      }
    }
  }
}

@media (max-width: 380px) {
  .wp-block-group.tp-hero-min,
  .tp-hero-min {
    .tp-hero-min__badge,
    .tp-hero-guarantee__badge {
      font-size: 9px;
      padding: 2.5px 10px;
      max-width: 200px;

      .tp-hero-min__badge-text,
      .tp-hero-min__badge-highlight {
        font-size: 9px;
      }
    }

    .tp-hero-min__title {
      font-size: 21px;
      max-width: 290px;
    }

    .tp-hero-min__btns-wrap {
      gap: 6px;
      margin-top: 14px;

      .tp-hero-min-btn,
      button.tp-hero-min-btn,
      a.tp-hero-min-btn {
        height: 36px;
        padding: 0 13px;
        font-size: 11.5px;

        .tp-hero-min-btn__icon {
          width: 18px;
          height: 18px;

          svg {
            width: 9px;
            height: 9px;
          }
        }

        .tp-hero-min-btn__text {
          font-size: 11.5px;
        }
      }
    }
  }
}


