/* HealthAI Data - Main CSS File
   Created: September 10, 2025
   Version: 1.0
*/

/* ======= GLOBAL STYLES ======= */
:root {
  /* Brand Colors */
  --primary-color: #0066cc;       /* Primary blue */
  --primary-dark: #004d99;        /* Darker blue for hover states */
  --secondary-color: #28a745;     /* Success green */
  --accent-color: #f8b500;        /* Accent yellow/gold */
  --text-color: #333333;          /* Main text color */
  --text-light: #666666;          /* Secondary text color */
  --background-light: #f8f9fa;    /* Light background */
  --background-white: #ffffff;    /* White background */
  --background-blue-light: #f0f7ff; /* Light blue background */
  --error-color: #dc3545;         /* Error/danger red */
  
  /* Typography */
  --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 8px;
  
  /* Box Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.text-center {
  text-align: center;
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #218838;
  border-color: #218838;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ======= NAVIGATION ======= */
.main-nav {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: var(--spacing-sm);
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: var(--spacing-lg);
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ======= HERO SECTION ======= */
.hero {
  background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
  color: white;
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero-pattern.svg');
  background-size: cover;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

/* ======= FEATURE SECTIONS ======= */
.features {
  background-color: var(--background-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  margin-bottom: var(--spacing-md);
}

/* ======= ABOUT SECTION ======= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-content h2 {
  margin-bottom: var(--spacing-lg);
}

.about-content p {
  margin-bottom: var(--spacing-lg);
}

/* ======= SERVICES SECTION ======= */
.services {
  background-color: var(--background-light);
}

.service-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.service-tab {
  padding: var(--spacing-md) var(--spacing-lg);
  margin: 0 var(--spacing-sm);
  background-color: white;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-sm);
}

.service-tab.active {
  background-color: var(--primary-color);
  color: white;
}

.service-content {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

/* ======= TESTIMONIALS ======= */
.testimonials {
  background-color: var(--background-blue-light);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-md);
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md);
  border: 3px solid var(--primary-color);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.testimonial-position {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ======= CONTACT FORM ======= */
.contact {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.contact-info h3 {
  margin-bottom: var(--spacing-lg);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: var(--spacing-md);
}

.contact-details h4 {
  margin-bottom: var(--spacing-xs);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ======= FOOTER ======= */
.footer {
  background-color: #1a1a1a;
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
  color: white;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ======= NEWSLETTER SUBSCRIPTION ======= */
.newsletter {
  background-color: var(--background-blue-light);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

.newsletter-input {
  flex: 1;
  padding: var(--spacing-md);
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
}

.newsletter-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 var(--spacing-lg);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
  background-color: var(--primary-dark);
}

/* ======= THANK YOU PAGE STYLES ======= */
.thank-you-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.thank-you-header {
  text-align: center;
  margin-bottom: 30px;
}

.success-checkmark {
  font-size: 60px;
  color: var(--secondary-color);
  margin: 20px 0;
}

.submission-details {
  background-color: var(--background-light);
  padding: 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
}

.reference-number {
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 15px;
}

.next-steps {
  margin-bottom: 30px;
}

.resources-list {
  margin: 15px 0;
  padding-left: 20px;
}

.resources-list li {
  margin-bottom: 10px;
}

.download-section {
  background-color: var(--background-blue-light);
  padding: 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.download-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: var(--primary-dark);
}

.return-home {
  text-align: center;
  margin-top: 30px;
}

/* ======= ERROR PAGE STYLES ======= */
.error-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-header {
  margin-bottom: 30px;
}

.error-icon {
  font-size: 60px;
  color: var(--error-color);
  margin: 20px 0;
  height: 80px;
  width: 80px;
  line-height: 80px;
  border-radius: 50%;
  background-color: rgba(220, 53, 69, 0.1);
  display: inline-block;
}

.error-message {
  margin-bottom: 30px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: var(--spacing-sm) 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input {
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
  }
  
  .newsletter-btn {
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
  }
  
  .download-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* ======= ANIMATIONS ======= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-delay-3 {
  animation-delay: 0.6s;
}

/* ======= ACCESSIBILITY ======= */
:focus {
  outline: 3px solid rgba(0, 102, 204, 0.5);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 1001;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}
/* === Board of Directors Section === */
.board-member {
  text-align: center;
  margin: 20px;
  flex: 1 1 200px;
}

/* Add this CSS to your stylesheet. 
  You must replace '.board-member-image-selector' 
  with the actual class or selector used for the board member images.
*/
.board-member-image-selector {
  display: block;       /* Allows the use of margin auto for centering */
  margin-left: auto;    /* Centers the image horizontally */
  margin-right: auto;   /* Centers the image horizontally */
  
  max-width: 100%;      /* Ensures the image is never wider than its container */
  height: auto;         /* Maintains the image's aspect ratio */
  
  /* This is the key property to prevent cropping. 
    It scales the image to fit *within* its box, 
    preserving the aspect ratio.
  */
  object-fit: contain; 

  /* If you also want the image centered vertically 
    (e.g., if the container is taller than the image):
  */
  object-position: center; 
}


