/* HM78 stage 2: homepage CTAs only. Existing mobile geometry is inherited. */
.hero-actions .hm78-cta-works,
.price-summary-actions .hm78-cta-calculate {
  --cta-accent: var(--gold, #d7b36a);
  --cta-rim-duration: 12s;
  --cta-rim-delay: 0s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(215,179,106,.7) !important;
  box-shadow: inset 0 0 0 1px rgba(215,179,106,.12), 0 4px 18px rgba(215,179,106,.1);
  transition: box-shadow .35s ease, background-color .35s ease;
}
.hero-actions .hm78-cta-works {
  color: #fff;
  background: rgba(255,255,255,.14);
}
.price-summary-actions .hm78-cta-calculate {
  --cta-rim-duration: 15s;
  --cta-rim-delay: -6s;
  color: #071e34 !important;
  background: #fff !important;
}
.hero-actions .hm78-cta-works::before,
.price-summary-actions .hm78-cta-calculate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(215,179,106,.15) 25%, #d7b36a 43%, #fff0c5 50%, #d7b36a 57%, rgba(215,179,106,.15) 75%);
  background-size: 280% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: hm78Rim var(--cta-rim-duration) ease-in-out var(--cta-rim-delay) infinite;
}
.hero-actions .hm78-cta-works::after,
.price-summary-actions .hm78-cta-calculate::after {
  content: "";
  position: absolute;
  inset: -45% -25%;
  z-index: -1;
  border-radius: 45%;
  pointer-events: none;
  background: radial-gradient(ellipse at 24% 100%, transparent 48%, rgba(255,247,216,.24) 52%, transparent 58%), radial-gradient(ellipse at 80% 0%, transparent 42%, rgba(215,179,106,.16) 48%, transparent 57%);
  opacity: .65;
  animation: hm78Water 10s ease-in-out infinite alternate;
}
.price-summary-actions .hm78-cta-calculate::after {
  background: radial-gradient(ellipse at 24% 100%, transparent 48%, rgba(215,179,106,.16) 52%, transparent 58%), linear-gradient(110deg, transparent 34%, rgba(215,179,106,.12) 50%, transparent 66%);
  animation: hm78Water 14s ease-in-out -5s infinite alternate, hm78SoftLight 18s ease-in-out -7s infinite;
}
.hero-actions .hm78-cta-works:focus-visible,
.price-summary-actions .hm78-cta-calculate:focus-visible {
  outline: 3px solid #d7b36a;
  outline-offset: 4px;
  box-shadow: inset 0 0 0 1px rgba(215,179,106,.5), 0 0 20px rgba(215,179,106,.24);
}
@media (hover: hover) and (pointer: fine) {
  .hero-actions .hm78-cta-works:hover,
  .price-summary-actions .hm78-cta-calculate:hover {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(215,179,106,.5), 0 5px 24px rgba(215,179,106,.26);
  }
}
@media (min-width: 981px) {
  .hero-actions { align-items: center; }
  .hero-actions .hm78-cta-works,
  .price-summary-actions .hm78-cta-calculate {
    box-sizing: border-box;
    width: 260px;
    min-width: 260px;
    min-height: 58px;
    height: 58px;
    flex: 0 0 260px;
    padding: 0 24px;
  }
  .hero-actions .hm78-cta-works {
    min-height: 52px;
    height: 52px;
    color: #071e34;
    background: linear-gradient(125deg, #e5c786, var(--cta-accent) 55%, #c29a4c);
    border-color: #d7b36a !important;
  }
}
@media (min-width: 981px) {
  .hero-actions .hm78-cta-works::after { animation-duration: 4s; }
}
@media (max-width: 980px) {
  /* Do not set width, height, padding, font metrics, margins, order or display. */
  .hero-actions .btn.hm78-cta-contact {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    background: #0b1220 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(215,179,106,.48), 0 5px 18px rgba(0,0,0,.2);
    transition: box-shadow .35s ease;
  }
  .hero-actions .btn.hm78-cta-contact::before {
    content: "";
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(215,179,106,.19) 49%, transparent 63%);
    border-radius: inherit;
    pointer-events: none;
    animation: hm78MessageSheen 16s ease-in-out -9s infinite;
  }
  .hero-actions .btn.hm78-cta-contact::after {
    content: "";
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 0%, rgba(215,179,106,.19), transparent 65%);
    border-radius: inherit;
    opacity: .8;
    pointer-events: none;
    animation: none;
  }
  .hero-actions .btn.hm78-cta-contact:focus-visible {
    outline: 3px solid #d7b36a;
    outline-offset: 4px;
  }
  .hero-actions .hm78-cta-works:hover,
  .hero-actions .hm78-cta-contact:hover,
  .price-summary-actions .hm78-cta-calculate:hover { transform: none; }
}
@keyframes hm78Rim {
  0%, 15% { background-position: 100% 50%; }
  70%, 100% { background-position: 0% 50%; }
}
@keyframes hm78Water {
  from { transform: translate3d(-5%, 3%, 0) rotate(-4deg); }
  to { transform: translate3d(5%, -3%, 0) rotate(4deg); }
}
@keyframes hm78SoftLight {
  0%, 65%, 100% { opacity: .45; }
  80% { opacity: .85; }
}
@keyframes hm78MessageSheen {
  0%, 45% { transform: translateX(-110%); opacity: 0; }
  50% { opacity: 1; }
  75% { transform: translateX(110%); opacity: 0; }
  100% { transform: translateX(110%); opacity: 0; }
}
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .hero-actions .hm78-cta-works::before,
  .price-summary-actions .hm78-cta-calculate::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-actions .hm78-cta-works,
  .hero-actions .hm78-cta-contact,
  .price-summary-actions .hm78-cta-calculate,
  .hero-actions .hm78-cta-works::before,
  .hero-actions .hm78-cta-works::after,
  .hero-actions .hm78-cta-contact::before,
  .hero-actions .hm78-cta-contact::after,
  .price-summary-actions .hm78-cta-calculate::before,
  .price-summary-actions .hm78-cta-calculate::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .hero-actions .hm78-cta-contact::before { opacity: 0; }
}
