/* Naturae Wellness - Custom CSS Framework */
/* Modern Healthcare Website Styles - 2025 */

/* ===== CSS VARIABLES ===== */
:root {
  /* Healthcare Color Palette */
  --primary-color: #2563eb; /* Professional Blue */
  --secondary-color: #059669; /* Healthcare Green */
  --accent-color: #0891b2; /* Teal Accent */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --dark: #1a202c;
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--gray-800);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-600);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: 1.7;
}

.text-muted {
  color: var(--gray-500) !important;
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

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

.btn-success {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-success:hover {
  background-color: #047857;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--gray-700) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-lg);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.1;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

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

.card-body {
  padding: var(--spacing-xl);
}

.service-card {
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200) !important;
}

.service-card:hover {
  border-color: var(--primary-color) !important;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ===== ICONS ===== */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
}

.icon-lg {
  font-size: 3rem;
}

/* ===== TRUST ELEMENTS ===== */
.trust-badge {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.certification-badge {
  background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  display: inline-block;
  margin: 0.25rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.stars {
  color: var(--warning-color);
  margin-bottom: var(--spacing-md);
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--white);
}

/* ===== FORMS ===== */
.form-control {
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.invalid-feedback {
  display: block;
  color: var(--danger-color);
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
}

.was-validated .form-control:invalid {
  border-color: var(--danger-color);
}

.was-validated .form-control:valid {
  border-color: var(--success-color);
}

/* ===== NEWSLETTER FORM ===== */
.newsletter-form {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-2xl);
  border: 1px solid var(--gray-200);
}

.newsletter-form .form-control {
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.newsletter-form .btn {
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

/* ===== CONTACT INFO ===== */
.contact-info-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-normal);
}

.contact-info-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: var(--spacing-md);
  width: 30px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--gray-900) !important;
  color: var(--gray-300);
}

footer h5, footer h6 {
  color: var(--white);
}

footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary-color);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray-800);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== UTILITY CLASSES ===== */
.bg-light-custom {
  background-color: var(--light-gray) !important;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: var(--secondary-color) !important;
}

.border-primary-custom {
  border-color: var(--primary-color) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-lg) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 1000;
}

#backToTop:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  z-index: 1001;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
  color: var(--white);
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #008000;
    --gray-600: #000000;
    --gray-700: #000000;
  }
  
  .card {
    border: 2px solid var(--gray-800);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 70vh;
  }
  
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.75rem; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .card-body {
    padding: var(--spacing-2xl);
  }
  
  .newsletter-form {
    padding: var(--spacing-3xl);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .navbar {
    padding: 1.5rem 0;
  }
  
  .hero-section {
    min-height: 90vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
  }
  
  .card-body {
    padding: var(--spacing-lg);
  }
  
  .newsletter-form {
    padding: var(--spacing-lg);
  }
  
  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-info-item i {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  #backToTop,
  .social-links {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== CUSTOM COMPONENTS ===== */

/* Statistics Cards */
.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.stat-number {
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Process Steps */
.process-step {
  padding: var(--spacing-lg);
}

.step-number {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

/* Benefits List */
.benefits-list .benefit-item {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--gray-200);
}

.benefits-list .benefit-item:last-child {
  border-bottom: none;
}

.benefit-icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

/* Tech Cards */
.tech-card {
  background: var(--white);
  transition: all var(--transition-normal);
}

.tech-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-color);
}

/* Accordion Customization */
.accordion-button {
  font-weight: 600;
  color: var(--gray-700);
  background-color: var(--gray-100);
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--white);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.accordion-item {
  border: 1px solid var(--gray-200);
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius-md) !important;
  overflow: hidden;
}

.accordion-body {
  background-color: var(--white);
  color: var(--gray-600);
}

/* Modal Customization */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  background-color: var(--primary-color);
  color: var(--white);
  border-bottom: none;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Alert Customization */
.alert {
  border: none;
  border-radius: var(--border-radius-md);
  border-left: 4px solid;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-left-color: var(--success-color);
}

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border-left-color: var(--info-color);
}

.alert-warning {
  background-color: #fffbeb;
  color: #92400e;
  border-left-color: var(--warning-color);
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border-left-color: var(--danger-color);
}

/* Badge Customization */
.badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
}

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: var(--border-radius-md);
  background-color: var(--gray-200);
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-md);
}

/* Spinner */
.spinner-border-custom {
  width: 2rem;
  height: 2rem;
  border: 0.25em solid var(--gray-300);
  border-right-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--white);
}