/* ========================================
   Caribbean Health Design System
   Navigating Health Services Web App
   ======================================== */

:root {
  /* Primary Brand Colors - Caribbean Healthcare */
  --primary-teal: #2AAEAD;
  --primary-sky-blue: #52B9E9;
  --primary-ocean-blue: #074F68;
  
  /* Secondary Support Colors - Compassion & Wellness */
  --secondary-coral: #E47A72;
  --secondary-gold: #F2C66D;
  --secondary-green: #66A88F;
  
  /* Neutral Colors */
  --neutral-dark: #333333;
  --neutral-medium: #666666;
  --neutral-light: #999999;
  --neutral-lighter: #EFEFEF;
  --neutral-lightest: #F7FAFA;
  --white: #FFFFFF;
  
  /* Status Colors */
  --success-green: #66A88F;
  --warning-orange: #F2C66D;
  --error-red: #E47A72;
  --info-blue: #52B9E9;
  
  /* Typography */
  --font-headings: 'Lora', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  
  /* 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;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   Global Styles
   ======================================== */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  line-height: 1.6;
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--primary-ocean-blue);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.875rem; }
h5 { font-size: 1.125rem; margin-bottom: 0.75rem; }
h6 { font-size: 1rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--neutral-medium);
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-ocean-blue);
  text-decoration: underline;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-teal);
  color: var(--white);
  border-color: var(--primary-teal);
}

.btn-primary:hover {
  background-color: var(--primary-ocean-blue);
  border-color: var(--primary-ocean-blue);
  color: var(--white);
  box-shadow: 0 6px 12px rgba(42, 174, 173, 0.25);
}

.btn-secondary {
  background-color: var(--primary-sky-blue);
  color: var(--white);
  border-color: var(--primary-sky-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-ocean-blue);
  border-color: var(--primary-ocean-blue);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-teal);
  border-color: var(--primary-teal);
}

.btn-outline:hover {
  background-color: var(--primary-teal);
  color: var(--white);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ========================================
   Cards
   ======================================== */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-sky-blue) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: 1.5rem;
}

.card-icon.coral {
  background: linear-gradient(135deg, var(--secondary-coral) 0%, var(--secondary-gold) 100%);
}

.card-icon.green {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-teal) 100%);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-ocean-blue);
}

.card-text {
  color: var(--neutral-medium);
  margin-bottom: 1rem;
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-ocean-blue);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary-teal);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--neutral-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-teal);
  text-decoration: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-teal);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  min-width: 200px;
  display: none;
  margin-top: 0.25rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--neutral-dark);
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--neutral-lightest);
  color: var(--primary-teal);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.navbar-toggler {
  display: none;
  background: transparent;
  border: 2px solid var(--primary-teal);
  color: var(--primary-teal);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 768px) {
  .navbar-toggler {
    display: block;
  }
  
  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .navbar-nav.show {
    display: flex;
  }
  
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-lighter);
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-left: 3px solid var(--primary-teal);
    margin-left: 1rem;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--neutral-lightest) 0%, var(--white) 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-ocean-blue);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-medium);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ========================================
   Section Layouts
   ======================================== */

.section {
  padding: 4rem 0;
}

.section-gradient {
  background: linear-gradient(180deg, var(--neutral-lightest) 0%, var(--white) 100%);
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-ocean-blue);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--neutral-medium);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ========================================
   Grid Layouts
   ======================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Testimonials / Blockquotes
   ======================================== */

.testimonial-quote {
  background: linear-gradient(135deg, rgba(228, 122, 114, 0.1) 0%, rgba(242, 198, 109, 0.1) 100%);
  border-left: 4px solid var(--secondary-coral);
  padding: 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--neutral-dark);
  line-height: 1.7;
  margin: 2rem 0;
}

.testimonial-author {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  color: var(--neutral-medium);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--primary-ocean-blue);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 0;
  clear: both;
}

.footer a {
  color: var(--white);
  opacity: 0.9;
}

.footer a:hover {
  opacity: 1;
  color: var(--primary-teal);
}

.footer-title {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ========================================
   Utility Classes
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-teal {
  color: var(--primary-teal);
}

.text-ocean {
  color: var(--primary-ocean-blue);
}

.text-coral {
  color: var(--secondary-coral);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.d-flex {
  display: flex;
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ========================================
   Alerts / Notifications
   ======================================== */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(102, 168, 143, 0.1);
  border-color: var(--success-green);
  color: var(--neutral-dark);
}

.alert-info {
  background-color: rgba(82, 185, 233, 0.1);
  border-color: var(--info-blue);
  color: var(--neutral-dark);
}

.alert-warning {
  background-color: rgba(242, 198, 109, 0.1);
  border-color: var(--warning-orange);
  color: var(--neutral-dark);
}

.alert-error {
  background-color: rgba(228, 122, 114, 0.1);
  border-color: var(--error-red);
  color: var(--neutral-dark);
}

/* ========================================
   Forms
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--neutral-dark);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--neutral-lighter);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
  font-family: var(--font-body);
  min-height: 44px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(42, 174, 173, 0.1);
}

.form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--neutral-medium);
}

/* ========================================
   Accessibility
   ======================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-ocean-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--primary-teal);
  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;
}
