/* ============================================
   VIGEO Health Design System - Components
   Reusable UI components with style shields
   ============================================ */

/* ========================================
   BUTTONS
   All buttons are "shielded" from parent styles
   ======================================== */

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal);
  /* Shield against parent gradient text effects */
  -webkit-text-fill-color: initial !important;
  background-clip: padding-box !important;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Button - Red background, white text */
.btn-primary {
  background: var(--vigeo-red) !important;
  color: var(--text-on-dark) !important;
  -webkit-text-fill-color: var(--text-on-dark) !important;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--vigeo-dark) !important;
  box-shadow: var(--shadow-brand-lg);
}

.btn-primary svg {
  color: var(--text-on-dark);
  stroke: var(--text-on-dark);
}

/* Secondary Button - White background, red border */
.btn-secondary {
  background: var(--white) !important;
  color: var(--vigeo-red) !important;
  -webkit-text-fill-color: var(--vigeo-red) !important;
  border: 2px solid var(--vigeo-red);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--cozy-cream) !important;
  box-shadow: var(--shadow-md);
}

.btn-secondary svg {
  color: var(--vigeo-red);
  stroke: var(--vigeo-red);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* Full width button */
.btn-block {
  width: 100%;
}


/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}


/* ========================================
   STAT CARD (Trust Indicators)
   Gradient text is scoped ONLY to the number
   ======================================== */

.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  /* Gradient ONLY on this element */
  background: linear-gradient(135deg, var(--vigeo-red), var(--vigeo-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.stat-label {
  display: block;
  font-size: var(--font-size-xs);
  /* Shield - ensure solid color, no gradient inheritance */
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-weight-semibold);
}

/* Stats row container */
.stats-row {
  display: flex;
  justify-content: space-around;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(175, 45, 44, 0.1);
  border-bottom: 1px solid rgba(175, 45, 44, 0.1);
}


/* ========================================
   PROCESS STEPS
   ======================================== */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line */
.process-steps::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--vigeo-red), var(--vigeo-warm));
  opacity: 0.3;
  z-index: 0;
}

@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    gap: var(--space-xl);
  }

  .process-steps::before {
    display: none;
  }
}

.process-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--vigeo-red), var(--vigeo-dark));
  color: var(--text-on-dark) !important;
  -webkit-text-fill-color: var(--text-on-dark) !important;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(175, 45, 44, 0.25);
}

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--vigeo-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(90, 143, 201, 0.3);
}

.step-icon svg {
  color: var(--text-on-dark);
  stroke: var(--text-on-dark);
  width: 20px;
  height: 20px;
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.step-description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.step-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--cozy-cream);
  border-radius: var(--radius-md);
}

.step-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.step-feature svg {
  width: 16px;
  height: 16px;
  color: var(--vigeo-red);
  stroke: var(--vigeo-red);
  flex-shrink: 0;
}


/* ========================================
   SERVICE CARDS
   ======================================== */

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--cozy-peach);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-icon img,
.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.service-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}


/* ========================================
   SECTION HEADINGS
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--cozy-peach);
  color: var(--vigeo-red);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-size-3xl);
  }
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}


/* ========================================
   FORM INPUTS
   ======================================== */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  /* Minimum 16px to prevent iOS auto-zoom on focus */
  font-size: max(16px, var(--font-size-base));
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--vigeo-red);
  box-shadow: 0 0 0 3px rgba(175, 45, 44, 0.1);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}


/* ========================================
   BADGES & TAGS
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
}

.badge-primary {
  background: var(--cozy-peach);
  color: var(--vigeo-red);
}

.badge-success {
  background: #d4edda;
  color: #155724;
}


/* ========================================
   CHECKMARK ICON (for lists)
   ======================================== */

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--vigeo-red);
  flex-shrink: 0;
}


/* ========================================
   MOBILE NAVIGATION
   ======================================== */

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: calc(var(--z-modal) + 10);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile nav controls container */
.mobile-nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--vigeo-red);
  color: var(--text-on-dark);
  border-radius: var(--radius-full);
}

.mobile-phone-btn svg {
  color: var(--text-on-dark);
  stroke: var(--text-on-dark);
}

/* Mobile menu styles are in navbar.css */
