/* ==========================================================================
   Buttons — shared component
   --------------------------------------------------------------------------
   Square corners, uppercase label, optional circled arrow that rotates 45° on
   hover (Webflow IX2 a-98/a-99, 350ms) for buttons that use one.

     .button-2          primary   — solid white/navy, fills orange on hover.
                                    Currently the CTA card's only button (see
                                    css/cta.css) — "Audit My Store" used
                                    .button-secondary and is parked, not
                                    deleted, for when it has somewhere to go.
     .button-secondary  secondary — translucent, navy-hairline on light ground
     .button            the label inside either
     .button-arrow      the optional icon inside either

   Sizes follow Webflow's breakpoints: tiny <=479, small 480-767, main >=768.
   ========================================================================== */

.button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem;
  margin-top: 0;
}

.button-group.is-center { justify-content: center; }

.button-group.z-index-2 {
  position: relative;
  z-index: 2;
}

.button-2,
.button-secondary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border-radius: 0;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: transform .3s;
}

.button-2 {
  background-color: var(--color-white);
  border: 1px solid var(--color-white);
  color: var(--color-navy-primary);
  text-transform: none;
  transition: background-color .3s, border-color .3s, color .3s, transform .3s, box-shadow .3s;
}

/* Fills with the same orange used for the CTA heading's highlighted word
   (see .cta-heading .highlight in css/cta.css), so the button reads as a
   continuation of that accent rather than an unrelated hover colour. Paired
   with a lift + orange-tinted glow — a shadow keyed to white wouldn't show
   up against the card's dark background. */
.button-2:hover,
.button-2:focus-visible {
  background-color: var(--color-orange-accent);
  border-color: var(--color-orange-accent);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(234, 121, 70, .55);
}

.button-secondary {
  background-color: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .5);
  color: var(--color-white);
}

/* Solid navy block — the hero's single CTA in the redesign. No arrow icon,
   so the label sits alone with symmetric padding. */
.button-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2.25rem;
  border: 1px solid var(--color-navy-primary);
  border-radius: 0;
  background-color: var(--color-navy-primary);
  color: var(--color-white);
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background-color .3s, border-color .3s, transform .3s;
}

.button-navy:hover {
  background-color: var(--color-navy-deep);
  border-color: var(--color-navy-deep);
}

.button-navy:active { transform: scale(.97); }

.button-navy:focus-visible {
  outline: 2px solid var(--color-navy-primary);
  outline-offset: 3px;
}

.button-2:active,
.button-secondary:active { transform: scale(.95); }

/* Inner label */
.button {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: inherit;
}

.button-arrow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.165, .84, .44, 1);
}

.button-arrow svg { width: 100%; height: auto; }

.button-2:hover .button-arrow,
.button-secondary:hover .button-arrow {
  transform: rotate(45deg);
}

.button-2:focus-visible,
.button-secondary:focus-visible {
  outline: 2px solid var(--color-navy-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   480px and up
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .button-group { gap: 1rem; }
  .button-2 { padding: .25rem 1rem; }
  .button-secondary { padding: .5rem 2rem; }
  .button-arrow { width: 2rem; }
}

/* --------------------------------------------------------------------------
   768px and up
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .button-2 { padding: .5rem 2rem; }
}

/* --------------------------------------------------------------------------
   Below 480px — fixed compact sizing, a direct user request
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  .button-2,
  .button-secondary,
  .button-navy {
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .button-2,
  .button-secondary,
  .button-navy,
  .button-arrow { transition: none; }

  /* Keep the colour swap for feedback; drop the lift so hover/active don't
     displace the button. */
  .button-2:hover,
  .button-2:focus-visible,
  .button-2:active {
    transform: none;
  }
}
