/* Hallmark component adaptation: existing brand palette and Puppid hero interaction. */
.hero-section {
  --hero-surface: #f5f5f7;
  --hero-ink: #1d1d1f;
  --hero-control-accent: #0066cc;
  --hero-background-image: url("/assets/optimized/forweave-sewing-1280.f87bc9bc63f2ef7c.webp");
  --hero-gutter: 28px;
  --hero-arrow-inset: 24px;
  --hero-control-space: 68px;
  --preview-header-height: 52px;
  --hero-wash-light: color-mix(in srgb, var(--hero-surface) 36%, transparent);
  --hero-wash-medium: color-mix(in srgb, var(--hero-surface) 55%, transparent);
  --hero-wash-strong: color-mix(in srgb, var(--hero-surface) 90%, transparent);
  padding-inline: var(--hero-gutter);
  background-color: var(--hero-surface);
  text-align: center;
}

.hero-copy {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin-inline: calc(-1 * var(--hero-gutter));
  padding-inline: var(--hero-gutter);
  padding-block: calc(var(--preview-header-height) + var(--hero-control-space)) var(--hero-control-space);
  background: var(--hero-background-image) center 46% / cover no-repeat;
}

.hero-background-fade,
.hero-copy::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-background-fade {
  z-index: -2;
  opacity: 0;
  background: var(--hero-next-background-image, none) center 46% / cover no-repeat;
}

.hero-copy::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--hero-wash-light), transparent 42%, var(--hero-surface)),
    radial-gradient(ellipse at 50% 48%, var(--hero-wash-strong) 26%, var(--hero-wash-medium) 66%, var(--hero-wash-light));
}

.hero-copy-content {
  max-width: 980px;
  min-width: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-background-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--hero-control-accent);
}

.hero-background-controls[hidden] {
  display: none;
}

.hero-background-controls button {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  font-size: 26px;
  line-height: 1;
}

.hero-background-controls .hero-background-toggle {
  font-size: 15px;
}

.hero-background-arrow {
  position: absolute;
  inset-block-start: calc(50% + var(--preview-header-height) / 2);
  translate: 0 -50%;
}

.hero-background-previous {
  inset-inline-start: var(--hero-arrow-inset);
}

.hero-background-next {
  inset-inline-end: var(--hero-arrow-inset);
}

.hero-background-status {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 44px;
}

.hero-background-toggle[hidden] {
  display: none;
}

.hero-background-count {
  min-inline-size: 3.2em;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .hero-section {
    --hero-gutter: 20px;
    --hero-arrow-inset: 12px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .hero-section {
    --hero-arrow-inset: 12px;
  }
}

@media (max-width: 400px) {
  .hero-copy .hero-p {
    padding-inline: 24px;
    font-size: 16px !important;
  }

  .hero-copy .hero-h1 {
    font-size: clamp(24px, calc(10vw - 9px), 32px) !important;
  }

  .hero-background-arrow span {
    font-size: 23px;
  }
}

@media (max-height: 560px) {
  .hero-section {
    --hero-control-space: 54px;
  }
  .hero-copy .hero-h1 {
    font-size: clamp(24px, 6vw, 36px) !important;
    margin-bottom: 12px !important;
  }
  .hero-copy .hero-p {
    font-size: 15px !important;
    margin-bottom: 14px !important;
  }
  .hero-copy .hero-eyebrow {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }
  .hero-actions {
    gap: 8px 20px;
  }
  .hero-background-status {
    inset-block-end: 6px;
  }
}


.hero-background-controls button:focus-visible {
  outline: 2px solid var(--hero-control-accent);
  outline-offset: 3px;
}
