/* ==========================================================================
   Vital Wellness — Button System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base Button
   -------------------------------------------------------------------------- */
.vw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vw-space-sm);
  padding: 14px 32px;
  font-family: var(--vw-font-body);
  font-size: var(--vw-text-body-sm);
  font-weight: var(--vw-weight-semibold);
  letter-spacing: var(--vw-tracking-wide);
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--vw-radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    background-color var(--vw-duration-normal) var(--vw-ease-out),
    color var(--vw-duration-normal) var(--vw-ease-out),
    border-color var(--vw-duration-normal) var(--vw-ease-out),
    transform var(--vw-duration-fast) var(--vw-ease-out),
    box-shadow var(--vw-duration-normal) var(--vw-ease-out);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.vw-btn:focus-visible {
  outline: 2px solid var(--vw-teal);
  outline-offset: 3px;
}

.vw-btn:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .vw-btn {
    transition: none;
  }
  .vw-btn:active {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   2. Primary Button (Teal — Brand Aligned)
   -------------------------------------------------------------------------- */
.vw-btn--primary {
  background-color: var(--vw-teal);
  color: var(--vw-white);
  border-color: var(--vw-teal);
}

.vw-btn--primary:hover {
  background-color: var(--vw-teal-dark);
  border-color: var(--vw-teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--vw-shadow-md);
}

.vw-btn--primary:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   3. Secondary Button (Outlined Charcoal)
   -------------------------------------------------------------------------- */
.vw-btn--secondary {
  background-color: transparent;
  color: var(--vw-charcoal);
  border-color: var(--vw-charcoal);
}

.vw-btn--secondary:hover {
  background-color: var(--vw-charcoal);
  color: var(--vw-white);
  transform: translateY(-1px);
}

/* On dark backgrounds */
.vw-scheme--charcoal .vw-btn--secondary,
.vw-scheme--teal .vw-btn--secondary {
  color: var(--vw-white);
  border-color: var(--vw-white);
}

.vw-scheme--charcoal .vw-btn--secondary:hover,
.vw-scheme--teal .vw-btn--secondary:hover {
  background-color: var(--vw-white);
  color: var(--vw-charcoal);
}

/* --------------------------------------------------------------------------
   4. Teal Button
   -------------------------------------------------------------------------- */
.vw-btn--teal {
  background-color: var(--vw-teal);
  color: var(--vw-white);
  border-color: var(--vw-teal);
}

.vw-btn--teal:hover {
  background-color: var(--vw-teal-dark);
  border-color: var(--vw-teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--vw-shadow-md);
}

/* --------------------------------------------------------------------------
   5. Ghost Button (Outlined Orange)
   -------------------------------------------------------------------------- */
.vw-btn--ghost {
  background-color: transparent;
  color: var(--vw-orange);
  border-color: var(--vw-orange);
}

.vw-btn--ghost:hover {
  background-color: var(--vw-orange);
  color: var(--vw-white);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   6. White Button (for dark backgrounds)
   -------------------------------------------------------------------------- */
.vw-btn--white {
  background-color: var(--vw-white);
  color: var(--vw-charcoal);
  border-color: var(--vw-white);
}

.vw-btn--white:hover {
  background-color: var(--vw-cream);
  border-color: var(--vw-cream);
  transform: translateY(-1px);
  box-shadow: var(--vw-shadow-md);
}

/* --------------------------------------------------------------------------
   7. Link Button (text-only with underline)
   -------------------------------------------------------------------------- */
.vw-btn--link {
  background: none;
  border: none;
  padding: 0;
  color: var(--vw-orange);
  font-weight: var(--vw-weight-semibold);
  text-decoration: none;
  position: relative;
  letter-spacing: var(--vw-tracking-wide);
}

.vw-btn--link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width var(--vw-duration-normal) var(--vw-ease-out);
}

.vw-btn--link:hover::after {
  width: 100%;
}

.vw-btn--link:hover {
  color: var(--vw-orange-hover);
  transform: none;
}

/* --------------------------------------------------------------------------
   8. Size Variants
   -------------------------------------------------------------------------- */
.vw-btn--sm {
  padding: 10px 20px;
  font-size: var(--vw-text-caption);
}

.vw-btn--lg {
  padding: 16px 36px;
  font-size: var(--vw-text-body);
}

@media screen and (max-width: 768px) {
  .vw-btn--lg {
    padding: 14px 26px;
    font-size: 0.9375rem;
  }
}

@media screen and (max-width: 480px) {
  .vw-btn {
    padding: 12px 20px;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
  }
  .vw-btn--lg {
    padding: 13px 20px;
    font-size: 0.875rem;
    min-height: 48px;
  }
  .vw-btn--sm {
    padding: 9px 15px;
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 360px) {
  .vw-btn {
    padding: 11px 16px;
    font-size: 0.8125rem;
  }
  .vw-btn--lg {
    padding: 12px 16px;
    font-size: 0.8125rem;
    min-height: 46px;
  }
}

.vw-btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. Icon Button
   -------------------------------------------------------------------------- */
.vw-btn--icon {
  padding: 12px;
  border-radius: var(--vw-radius-full);
  min-width: 44px;
  min-height: 44px;
}

.vw-btn--icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Button with Arrow Icon
   -------------------------------------------------------------------------- */
.vw-btn__arrow {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .vw-btn:hover .vw-btn__arrow {
    transform: none;
  }
}

/* Arrow SVG default */
.vw-btn__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   11. Loading State
   -------------------------------------------------------------------------- */
.vw-btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.vw-btn--loading .vw-btn__text {
  visibility: hidden;
}

.vw-btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: vw-spin 0.6s linear infinite;
}

@keyframes vw-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   12. Disabled State
   -------------------------------------------------------------------------- */
.vw-btn:disabled,
.vw-btn[disabled],
.vw-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. Button Group
   -------------------------------------------------------------------------- */
.vw-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vw-space-md);
  align-items: center;
}

.vw-btn-group--center {
  justify-content: center;
}

.vw-btn-group--stack {
  flex-direction: column;
  align-items: stretch;
}

@media screen and (max-width: 749px) {
  .vw-btn-group--stack-mobile {
    flex-direction: column;
    align-items: stretch;
  }

  .vw-btn-group--stack-mobile .vw-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   14. Approved V5 Signature Conversion Buttons
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   14. Approved Signature 3D Retro Conversion Button Style (Reference Attached)
   - Pill / rounded rectangular shape (border-radius: 10px / 12px)
   - Warm orange fill (#FF8946 / #FF8A43)
/* ==========================================================================
   Hero Power CTA Button — High-Impact Green with 4 Corner Frame Brackets & Crown Lottie
   Reference: Sharp rectangular green button, white bold text, corner brackets, and neon crown
   ========================================================================== */
.vw-hero__cta-frame {
  position: relative;
  display: inline-flex;
  padding: 6px;
  max-width: 100%;
  box-sizing: border-box;
}

.vw-hero__cta-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #00A63E;
  border-style: solid;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.vw-hero__cta-corner--tl {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
}

.vw-hero__cta-corner--tr {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
}

.vw-hero__cta-corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
}

.vw-hero__cta-corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
}

.vw-hero__cta-frame:hover .vw-hero__cta-corner--tl {
  transform: translate(-3px, -3px);
  border-color: #00C84B;
}

.vw-hero__cta-frame:hover .vw-hero__cta-corner--tr {
  transform: translate(3px, -3px);
  border-color: #00C84B;
}

.vw-hero__cta-frame:hover .vw-hero__cta-corner--bl {
  transform: translate(-3px, 3px);
  border-color: #00C84B;
}

.vw-hero__cta-frame:hover .vw-hero__cta-corner--br {
  transform: translate(3px, 3px);
  border-color: #00C84B;
}

/* Green Rectangular Power Button */
.vw-btn--hero-power {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background-color: #00A63E !important;
  color: #FFFFFF !important;
  font-family: var(--vw-font-display, 'Nohemi', sans-serif);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 18px 36px;
  border: none !important;
  border-radius: 0px !important;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 166, 62, 0.32), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  overflow: visible;
}

.vw-btn--hero-power:hover {
  background-color: #00BD47 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 166, 62, 0.45), 0 4px 10px rgba(0, 0, 0, 0.16) !important;
}

.vw-btn--hero-power:active {
  transform: translateY(1px) !important;
  box-shadow: 0 3px 10px rgba(0, 166, 62, 0.3) !important;
}

.vw-btn--hero-power:focus-visible {
  outline: 3px solid #00A63E;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .vw-hero__cta-frame {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px;
  }
  .vw-btn--hero-power {
    width: 100%;
    padding: 14px 12px;
    font-size: 13px;
    gap: 8px;
    letter-spacing: 0.02em;
    text-align: center;
    box-sizing: border-box;
  }
  .vw-btn--hero-power > span:first-child {
    line-height: 1.25;
  }
  .vw-btn__star-svg {
    width: 24px;
    height: 22px;
  }
}

@media (max-width: 360px) {
  .vw-btn--hero-power {
    font-size: 11.5px;
    padding: 12px 8px;
    gap: 6px;
  }
  .vw-btn__star-svg {
    width: 20px;
    height: 18px;
  }
}

/* Promo Modal CTA Frame & Power Button */
.vw-promo-modal__cta-frame {
  position: relative;
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 10px !important;
  margin-bottom: 4px !important;
  padding: 5px !important;
}

.vw-promo-modal__cta-frame .vw-btn--hero-power {
  width: 100% !important;
  min-height: 52px !important;
  padding: 14px 16px !important;
  font-size: 13.5px !important;
  letter-spacing: 0.03em !important;
  gap: 10px !important;
  text-align: center !important;
  justify-content: center !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  .vw-promo-modal__cta-frame {
    padding: 4px !important;
    margin-top: 8px !important;
  }
  .vw-promo-modal__cta-frame .vw-btn--hero-power {
    font-size: 12px !important;
    padding: 12px 10px !important;
    gap: 8px !important;
    min-height: 46px !important;
  }
  .vw-promo-modal__cta-frame .vw-btn__star-svg {
    width: 24px;
    height: 22px;
  }
}

/* Star Lottie Icon Animation */
.vw-btn__star-lottie,
.vw-btn__crown-lottie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  animation: vwStarBob 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: center;
  margin-left: 2px;
}

.vw-btn__star-svg,
.vw-btn__crown-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(252, 238, 33, 0.85)) drop-shadow(0 0 12px rgba(255, 30, 130, 0.6));
  animation: vwStarGlow 2.4s ease-in-out infinite alternate;
}

.vw-star-shadow,
.vw-crown-shadow {
  transform: translate(1.5px, 1.5px);
}

.vw-star-core {
  animation: vwStarCorePulse 2s ease-in-out infinite alternate;
  transform-origin: 17px 15px;
}

.vw-star-sparkle--1,
.vw-crown-sparkle--1 {
  animation: vwStarSparkle 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: 30px 4.5px;
}

.vw-star-sparkle--2,
.vw-crown-sparkle--2 {
  animation: vwStarSparkle 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.7s;
  transform-origin: 4px 23px;
}

.vw-star-sparkle--3 {
  animation: vwStarSparkle 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite 0.3s;
  transform-origin: 6px 6px;
}

@keyframes vwStarBob {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  35% {
    transform: translateY(-3.5px) scale(1.1) rotate(6deg);
  }
  70% {
    transform: translateY(1.5px) scale(0.96) rotate(-3deg);
  }
}

@keyframes vwStarGlow {
  0% {
    filter: drop-shadow(0 0 4px rgba(252, 238, 33, 0.6)) drop-shadow(0 0 8px rgba(255, 30, 130, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(252, 238, 33, 1)) drop-shadow(0 0 18px rgba(255, 30, 130, 0.85));
  }
}

@keyframes vwStarCorePulse {
  0% {
    transform: scale(0.85) rotate(0deg);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.3) rotate(45deg);
    opacity: 1;
  }
}

@keyframes vwStarSparkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.4) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.35) rotate(90deg);
  }
}

.vw-btn--hero-tangerine,
.vw-btn--3d-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #FF8946;
  color: #083C39 !important;
  border: 2px solid #083C39 !important;
  border-radius: 10px !important;
  padding: 16px 36px;
  font-family: var(--vw-font-body, 'Hanken Grotesk', sans-serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 5px 0 #083C39 !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vw-btn--hero-tangerine .vw-btn__arrow,
.vw-btn--3d-orange .vw-btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

.vw-btn--hero-tangerine:hover,
.vw-btn--3d-orange:hover {
  background-color: #FFA063;
  color: #083C39 !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #083C39 !important;
}

.vw-btn--hero-tangerine:hover .vw-btn__arrow,
.vw-btn--3d-orange:hover .vw-btn__arrow {
  transform: translate(2px, -2px);
}

.vw-btn--hero-tangerine:active,
.vw-btn--3d-orange:active {
  transform: translateY(3px) !important;
  box-shadow: 0 2px 0 #083C39 !important;
}

.vw-btn--hero-tangerine:focus-visible,
.vw-btn--3d-orange:focus-visible {
  outline: 2px solid #083C39;
  outline-offset: 3px;
}

/* Also apply 3D styling to primary conversion buttons across the page */
.vw-btn--primary {
  background-color: #FF8946 !important;
  color: #083C39 !important;
  border: 2px solid #083C39 !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 0 #083C39 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.vw-btn--primary:hover {
  background-color: #FFA063 !important;
  color: #083C39 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 0 #083C39 !important;
}

.vw-btn--primary:active {
  transform: translateY(3px) !important;
  box-shadow: 0 2px 0 #083C39 !important;
}


/* Navigation header CTA (Standard V5 Dark Teal Button) */
.vw-btn--nav-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #104F4A !important;
  color: #FAF7F0 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 22px !important;
  font-family: var(--vw-font-body, 'Hanken Grotesk', sans-serif);
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 79, 74, 0.18) !important;
  transform: none !important;
  transition: background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vw-btn--nav-teal:hover {
  background-color: #17938A !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(16, 79, 74, 0.25) !important;
}

.vw-btn--nav-teal:active {
  transform: scale(0.97) !important;
  box-shadow: 0 1px 4px rgba(16, 79, 74, 0.18) !important;
}

@media screen and (max-width: 749px) {
  .vw-hero__cta-frame {
    width: 100% !important;
    display: flex !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }

  .vw-btn--hero-power {
    width: 100% !important;
    min-height: 56px !important;
    padding: 14px 16px !important;
    font-size: 13.5px !important;
    letter-spacing: 0.03em !important;
    gap: 8px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .vw-btn--hero-tangerine,
  .vw-btn--3d-orange {
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
    text-align: center;
  }
}

