/**
 * Refined Elegance Design System
 * Tailored Care Solutions - Healthcare Professional Theme
 *
 * Philosophy: Trust, Calm, Sophistication
 * Less is more. Slow, gentle, purposeful animations.
 * Every element serves a purpose. Nothing flashy.
 */

/* ============================================
   SOPHISTICATED COLOR PALETTE
   ============================================ */
:root {
  /* Core Brand Colors */
  --primary-navy: #1B365D;
  --accent-gold: #D4A574;

  /* Refined Derivatives */
  --navy-deep: #0f1f3a;
  --navy-soft: #2a4a7d;
  --navy-muted: rgba(27, 54, 93, 0.85);

  --gold-refined: #c09062;
  --gold-subtle: rgba(212, 165, 116, 0.15);
  --gold-whisper: rgba(212, 165, 116, 0.08);

  /* Professional Neutrals */
  --white-pure: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.95);
  --white-glass: rgba(255, 255, 255, 0.08);
  --black-overlay: rgba(0, 0, 0, 0.25);

  /* Gentle Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-elegant: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* Professional Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Refined Borders */
  --radius-subtle: 8px;
  --radius-soft: 12px;
  --radius-elegant: 16px;

  /* Timing - Slow and Graceful */
  --duration-instant: 150ms;
  --duration-quick: 300ms;
  --duration-gentle: 500ms;
  --duration-slow: 800ms;

  /* Easing - Calm and Natural */
  --ease-refined: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-gentle: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   ELEGANT BACKGROUNDS
   ============================================ */

/* Subtle gradient - barely noticeable, just depth */
.refined-gradient {
  background: linear-gradient(
    135deg,
    var(--navy-deep) 0%,
    var(--primary-navy) 50%,
    var(--navy-soft) 100%
  );
  position: relative;
}

/* Gentle golden accent - whisper, not shout */
.refined-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at 80% 20%,
    var(--gold-whisper) 0%,
    transparent 50%
  );
  pointer-events: none;
  opacity: 0.6;
}

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

.elegant-card {
  background: var(--white-glass);
  backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-soft);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-subtle);
  transition: all var(--duration-gentle) var(--ease-refined);
  position: relative;
}

/* Gentle hover - subtle lift, soft glow */
.elegant-card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-elegant),
    0 0 24px rgba(212, 165, 116, 0.12);
  border-color: rgba(212, 165, 116, 0.25);
}

/* Refined top accent - barely visible golden line */
.elegant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 165, 116, 0.4),
    transparent
  );
  opacity: 0;
  transition: opacity var(--duration-gentle) var(--ease-refined);
}

.elegant-card:hover::before {
  opacity: 1;
}

/* ============================================
   PROFESSIONAL BUTTONS
   ============================================ */

.btn-refined {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-gold), var(--gold-refined));
  color: var(--primary-navy);
  border: none;
  border-radius: var(--radius-subtle);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: all var(--duration-gentle) var(--ease-refined);
}

/* Subtle lift on hover - professional, not playful */
.btn-refined:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Gentle press feedback */
.btn-refined:active {
  transform: translateY(0);
  box-shadow: var(--shadow-subtle);
}

/* Secondary button - outlined, refined */
.btn-refined-secondary {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid rgba(212, 165, 116, 0.4);
  padding: 13px 27px;
  transition: all var(--duration-gentle) var(--ease-refined);
}

.btn-refined-secondary:hover {
  background: var(--gold-subtle);
  border-color: var(--accent-gold);
}

/* ============================================
   ELEGANT TYPOGRAPHY
   ============================================ */

/* Sophisticated serif for headings */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

.heading-refined {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--white-pure);
}

.heading-refined.h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.heading-refined.h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.heading-refined.h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Subtle golden accent on headings - very light */
.heading-accent {
  position: relative;
  display: inline-block;
}

.heading-accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-gold),
    transparent
  );
  opacity: 0.6;
}

/* Body text - professional, readable */
.text-refined {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

/* ============================================
   GENTLE ANIMATIONS
   ============================================ */

/* Fade in - slow and graceful */
@keyframes fadeInGentle {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-gentle {
  animation: fadeInGentle var(--duration-slow) var(--ease-gentle) forwards;
  opacity: 0;
}

/* Stagger children for cascade effect */
.stagger-children > * {
  opacity: 0;
  animation: fadeInGentle var(--duration-slow) var(--ease-gentle) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 100ms; }
.stagger-children > *:nth-child(2) { animation-delay: 200ms; }
.stagger-children > *:nth-child(3) { animation-delay: 300ms; }
.stagger-children > *:nth-child(4) { animation-delay: 400ms; }
.stagger-children > *:nth-child(5) { animation-delay: 500ms; }

/* Subtle floating - barely noticeable, calming */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-gentle {
  animation: floatGentle 6s var(--ease-refined) infinite;
}

/* ============================================
   REFINED INTERACTIONS
   ============================================ */

/* Icon gentle scale on hover */
.icon-refined {
  display: inline-flex;
  transition: transform var(--duration-gentle) var(--ease-refined);
}

.icon-refined:hover {
  transform: scale(1.05);
}

/* Link underline - elegant appearance */
.link-refined {
  color: var(--accent-gold);
  text-decoration: none;
  position: relative;
  transition: color var(--duration-gentle) var(--ease-refined);
}

.link-refined::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--duration-gentle) var(--ease-refined);
}

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

/* ============================================
   SOPHISTICATED NAVIGATION
   ============================================ */

.nav-refined {
  background: rgba(15, 31, 58, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
  box-shadow: var(--shadow-subtle);
}

.nav-item-refined {
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  position: relative;
  transition: color var(--duration-gentle) var(--ease-refined);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav-item-refined::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--duration-gentle) var(--ease-refined);
}

.nav-item-refined:hover,
.nav-item-refined.active {
  color: var(--white-pure);
}

.nav-item-refined:hover::before,
.nav-item-refined.active::before {
  width: 60%;
}

/* ============================================
   PROFESSIONAL FORMS
   ============================================ */

.input-refined {
  width: 100%;
  padding: 14px 16px;
  background: var(--white-glass);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-subtle);
  color: var(--white-pure);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all var(--duration-gentle) var(--ease-refined);
}

.input-refined::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-refined:focus {
  outline: none;
  border-color: rgba(212, 165, 116, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.08);
}

/* ============================================
   LOADING STATES - GENTLE SHIMMER
   ============================================ */

.skeleton-refined {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(212, 165, 116, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmerGentle 3s ease-in-out infinite;
  border-radius: var(--radius-subtle);
}

@keyframes shimmerGentle {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */

/* Respect user preferences - crucial for healthcare */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .float-gentle,
  .fade-in-gentle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .elegant-card {
    border-width: 2px;
  }

  .btn-refined {
    border: 2px solid var(--primary-navy);
  }
}

/* ============================================
   RESPONSIVE REFINEMENT
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }

  .elegant-card {
    padding: var(--spacing-md);
  }

  .btn-refined {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   FOCUS STATES - PROFESSIONAL
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default outline, replace with elegant version */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Gentle opacity variations */
.opacity-subtle { opacity: 0.6; }
.opacity-soft { opacity: 0.8; }
.opacity-full { opacity: 1; }

/* Professional spacing */
.container-refined {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   SPECIAL HEALTHCARE ELEMENTS
   ============================================ */

/* Trust badge - subtle professional indicator */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 8px 16px;
  background: rgba(212, 165, 116, 0.1);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: var(--radius-subtle);
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 500;
}

/* Testimonial card - warm and trustworthy */
.testimonial-refined {
  background: var(--white-glass);
  backdrop-filter: blur(20px);
  border-left: 3px solid var(--accent-gold);
  padding: var(--spacing-lg);
  border-radius: var(--radius-soft);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

/* Stats counter - professional presentation */
.stat-refined {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-refined .number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-refined .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
