/* ============================================
   COMPONENTS.CSS - Buttons, Cards, Icons, Badges
   NDIStress - Professional UI Components
   ============================================ */

/* ----------------------------------------
   Buttons - Base
   Modern, pill-shaped with generous padding
   and smooth transitions
   ---------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1em;
  letter-spacing: 0.3px;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

/* Hover lift */
.btn:hover {
  transform: translateY(-2px);
}

/* Active press */
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* Buttons should be max-content width */
a.btn {
  width: max-content;
}

/* Focus ring for accessibility */
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Shine sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.2) 55%,
    transparent 80%
  );
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.btn:hover::after {
  left: 100%;
}

/* ----------------------------------------
   Button - Accent (Orange CTA)
   Primary call-to-action, high contrast
   ---------------------------------------- */
.btn--yellow {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(232, 135, 61, 0.3);
}

.btn--yellow:hover {
  background-color: #D4772E;
  border-color: #D4772E;
  color: var(--color-white);
  box-shadow: 0 8px 25px rgba(232, 135, 61, 0.4);
}

/* ----------------------------------------
   Button - Primary (Purple)
   Secondary CTA, used in headers & sections
   ---------------------------------------- */
.btn--primary-dark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(91, 45, 142, 0.25);
}

.btn--primary-dark:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 8px 25px rgba(91, 45, 142, 0.35);
}

/* ----------------------------------------
   Button - White
   For use on dark/image backgrounds
   ---------------------------------------- */
.btn--white {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ----------------------------------------
   Button - Light (Lavender)
   Soft CTA for sections
   ---------------------------------------- */
.btn--mint {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.btn--mint:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 25px rgba(91, 45, 142, 0.25);
}

/* ----------------------------------------
   Button - Outline (Dark border)
   Minimal, clean for secondary actions
   ---------------------------------------- */
.btn--outline {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--color-dark);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 25px rgba(91, 45, 142, 0.25);
}

/* Outline - no shine sweep (cleaner look) */
.btn--outline::after {
  display: none;
}

/* ----------------------------------------
   Button - Outline Light (white border on dark bg)
   For purple/dark sections, footer
   ---------------------------------------- */
.btn--outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
}

.btn--outline-light:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn--outline-light::after {
  display: none;
}

/* ----------------------------------------
   Button - Ghost (no background, no border)
   ---------------------------------------- */
.btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-primary);
  padding: 8px 0;
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--color-primary-dark);
  transform: none;
  box-shadow: none;
}

.btn--ghost::after {
  display: none;
}

/* ----------------------------------------
   Button - Gradient (brand gradient)
   Premium feel for key CTAs
   ---------------------------------------- */
.btn--gradient {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(91, 45, 142, 0.3);
}

.btn--gradient:hover {
  box-shadow: 0 8px 30px rgba(91, 45, 142, 0.45);
  filter: brightness(1.08);
}

/* ----------------------------------------
   Button Sizes
   ---------------------------------------- */
.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
  gap: 8px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
  gap: 12px;
}

/* ----------------------------------------
   Button Plus Icon (+ SVG inside buttons)
   ---------------------------------------- */
.btn__plus {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn:hover .btn__plus {
  transform: rotate(90deg);
}

/* ----------------------------------------
   Button Arrow Icon
   ---------------------------------------- */
.btn__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ----------------------------------------
   Button Icon Circle
   Circle container with icon inside button
   ---------------------------------------- */
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  transition: all var(--ease);
  flex-shrink: 0;
}

.btn__icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.btn:hover .btn__icon {
  background-color: rgba(255, 255, 255, 0.35);
  transform: translateX(2px);
}

/* ----------------------------------------
   Icon Circle (standalone circle icon)
   Used for phone icons, contact icons etc.
   ---------------------------------------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  transition: all var(--ease);
  flex-shrink: 0;
}

.icon-circle svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  transition: fill var(--ease);
}

.icon-circle:hover {
  background-color: var(--color-primary);
  transform: scale(1.05);
}

.icon-circle:hover svg {
  fill: var(--color-white);
}

/* Icon Circle - Small */
.icon-circle--sm {
  width: 34px;
  height: 34px;
}

.icon-circle--sm svg {
  width: 14px;
  height: 14px;
}

/* Icon Circle - Mint variant */
.icon-circle--mint {
  background-color: var(--color-primary-light);
}

/* ----------------------------------------
   Section Badge (category label)
   Pill-shaped with accent color
   ---------------------------------------- */
.section-badge {
  display: inline-block;
  width: max-content;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(232, 135, 61, 0.08);
  padding: 7px 16px;
  border-radius: 50px;
  line-height: 1.4em;
}

/* ----------------------------------------
   Condition Tag (pill with icon)
   ---------------------------------------- */
.condition-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  background-color: var(--color-white);
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.condition-tag svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: var(--color-primary);
}

.condition-tag:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.condition-tag:hover svg {
  stroke: var(--color-white);
}

/* Condition Tag - Light (on dark bg) */
.condition-tag--light {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.condition-tag--light svg {
  stroke: var(--color-white);
}

.condition-tag--light:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
}

.condition-tag--light:hover svg {
  stroke: var(--color-primary);
}

/* ----------------------------------------
   Feature Pill (why-us section)
   Rounded pill with icon
   ---------------------------------------- */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-dark);
  background-color: var(--color-cream);
  padding: 14px 22px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--color-primary);
  transition: stroke 0.3s ease;
}

.feature-pill:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 45, 142, 0.2);
}

.feature-pill:hover svg {
  stroke: var(--color-white);
}

/* ----------------------------------------
   Cards - Base
   ---------------------------------------- */
.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease-spring), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------
   Rating Stars
   ---------------------------------------- */
.stars {
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

/* ----------------------------------------
   Divider
   ---------------------------------------- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ----------------------------------------
   Arrow Link (inline text link with arrow)
   ---------------------------------------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s ease, color 0.2s ease;
}

.arrow-link:hover {
  gap: 14px;
  color: var(--color-primary-dark);
}

.arrow-link svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
  transition: fill 0.2s ease;
}

.arrow-link:hover svg {
  fill: var(--color-primary-dark);
}
