/* Full-bleed hero — background image + left gradient (see design mockup) */
.elementor-widget-tas-home-hero {
  width: 100%;
}

.tas-hero {
  position: relative;
  width: 100%;
  /* margin-left: calc(50% - 50vw); */
  min-height: min(520px, 78vh);
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
  background-color: #fdfaf5;
}

/* Compass watermark (left) */
.tas-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: min(300px, 38vw);
  height: min(300px, 38vw);
  pointer-events: none;
  opacity: 0.2;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='0.6'%3E%3Cpath d='M100 20 L110 90 L180 100 L110 110 L100 180 L90 110 L20 100 L90 90 Z'/%3E%3Ccircle cx='100' cy='100' r='70'/%3E%3Ccircle cx='100' cy='100' r='50'/%3E%3C/g%3E%3C/svg%3E"); */
  background-size: contain;
  background-repeat: no-repeat;
}

/* Full-width photo + fade into cream on the left */
.tas-hero--has-bg {
  background-image:
    linear-gradient(
      95deg,
      #fdfaf5 0%,
      #fdfaf5 40%,
      rgba(253, 250, 245, 0.97) 45%,
      rgba(253, 250, 245, 0.88) 50%,
      rgba(248, 246, 241, 0.72) 55%,
      rgba(237, 245, 243, 0.45) 60%,
      rgba(234, 244, 244, 0.18) 65%,
      transparent 92%
    ),
    radial-gradient(circle at 8% 18%, rgba(var(--accent-rgb), 0.07) 0, transparent 32%),
    var(--tas-hero-bg-image);
  background-size: contain;
  background-position: center, center, right center;
  background-repeat: no-repeat;
}

.tas-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: inherit;
  width: min(100% - 40px, var(--layout-max-width));
  margin: 0 auto;
}

.tas-hero__content {
  width: min(100%, 560px);
  padding-right: 21px;
}

.tas-hero__eyebrow {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tas-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.tas-hero__title-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  max-width: 200px;
}

.tas-hero__title-divider::before,
.tas-hero__title-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.tas-hero__title-divider span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.tas-hero__lead {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.tas-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1199px) {
  .tas-hero--has-bg {
    background-image:
      linear-gradient(
        180deg,
        rgba(253, 250, 245, 0.96) 0%,
        rgba(253, 250, 245, 0.88) 38%,
        rgba(253, 250, 245, 0.62) 58%,
        rgba(234, 244, 244, 0.28) 100%
      ),
      var(--tas-hero-bg-image);
    background-size: 100% 100%, cover;
    background-position: center, 72% center;
  }
  .tas-hero__content {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 767px) {
  .tas-hero--has-bg {
    background-image:
      linear-gradient(
        180deg,
        rgba(253, 250, 245, 0.94) 60%,
        rgba(253, 250, 245, 0.82) 70%,
        rgba(253, 250, 245, 0.5) 80%,
        rgba(253, 250, 245, 0.22) 90%,
        rgba(234, 244, 244, 0.12) 100%
      ),
      var(--tas-hero-bg-image);
    background-size: 100% 100%, cover;
    background-position: center, 78% 42%;
  }

  .tas-hero::before {
    width: min(220px, 52vw);
    height: min(220px, 52vw);
    opacity: 0.14;
  }

  .tas-hero__inner {
    padding: 40px 0 48px;
  }

  .tas-hero__actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .tas-hero__actions .tas-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.75rem;
    gap: 6px;
    white-space: normal;
    text-align: center;
  }
}
