/* ====================================================================
   COVERALL HEALTH GROUP - PURE CSS DESIGN SYSTEM
   Version: 20251029
   No frameworks, no dependencies - Just vanilla CSS
   ==================================================================== */

/* ====================================================================
   CSS VARIABLES - DESIGN TOKENS
   ==================================================================== */
:root {
  /* Brand Colors - Coverall Health Group */
  --primary-h: 221;
  --primary-s: 83%;
  --primary-l: 32%; /* Deep Navy Blue #1E3A8A */
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-foreground: hsl(0, 0%, 100%);
  
  --accent-h: 38;
  --accent-s: 92%;
  --accent-l: 50%; /* Warm Amber #F59E0B */
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-foreground: hsl(0, 0%, 100%);
  
  /* Neutral Colors */
  --background: hsl(210, 17%, 98%); /* Light off-white */
  --foreground: hsl(222, 47%, 11%); /* Dark text */
  --muted: hsl(220, 10%, 88%);
  --muted-foreground: hsl(222, 12%, 35%);
  
  /* Card Colors */
  --card: hsl(0, 0%, 100%); /* Pure white */
  --card-foreground: hsl(222, 47%, 11%);
  --card-border: hsl(220, 4%, 90%);
  
  /* Border & Input */
  --border: hsl(220, 4%, 85%);
  --input: hsl(220, 8%, 65%);
  
  /* Success & Destructive */
  --success: hsl(158, 64%, 52%);
  --success-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 72%, 51%);
  --destructive-foreground: hsl(0, 0%, 100%);
  
  /* Typography - DM Sans & Poppins */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Spacing & Sizing */
  --radius: 0.5rem; /* 8px */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0px 1px 2px -1px rgba(30, 58, 138, 0.08);
  --shadow-md: 0px 2px 4px -1px rgba(30, 58, 138, 0.10);
  --shadow-lg: 0px 4px 6px -1px rgba(30, 58, 138, 0.12);
  --shadow-xl: 0px 8px 10px -1px rgba(30, 58, 138, 0.15);
  
  /* Animation Timings */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ==================================================================== 
   BASE STYLES & RESET
   ==================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px; /* Coverall's larger base size */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; } /* 44px */
h2 { font-size: 2.25rem; } /* 36px */
h3 { font-size: 1.75rem; } /* 28px */
h4 { font-size: 1.375rem; } /* 22px */
h5 { font-size: 1.1875rem; } /* 19px */
h6 { font-size: 1.0625rem; } /* 17px */

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* ====================================================================
   LAYOUT UTILITIES
   ==================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Spacing utilities */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Text colors */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-success { color: var(--success); }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(221, 83%, 28%) 100%);
  color: var(--primary-foreground);
  border-color: hsl(221, 83%, 24%);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  position: relative;
  z-index: 1;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
  z-index: -1;
  border-radius: calc(var(--radius) - 2px);
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--accent-foreground);
  border-color: var(--accent);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: hsl(38, 92%, 42%);
}

.btn-accent:hover {
  background: hsl(38, 92%, 55%);
  transform: scale(1.05);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.9375rem;
}

/* ====================================================================
   CARDS
   ==================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Expandable cards */
.card-expandable {
  cursor: pointer;
}

.card-expandable .card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.card-expandable.expanded .card-content {
  max-height: 500px;
}

.card-expandable .card-icon {
  transition: transform var(--transition-base);
}

.card-expandable.expanded .card-icon {
  transform: rotate(180deg);
}

/* ==================================================================== 
   FORMS
   ==================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  margin-right: 0.75rem;
}

.form-error {
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.required {
  color: var(--destructive);
  margin-left: 0.25rem;
}

/* ====================================================================
   HEADER / NAVIGATION
   ==================================================================== */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--foreground);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  display: none;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-radius: calc(var(--radius) - 2px);
  transition: background var(--transition-fast);
}

.nav-dropdown-item:hover {
  background: var(--muted);
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--foreground);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--card);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transition: left var(--transition-slow);
  overflow-y: auto;
  padding: 2rem;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.mobile-nav-link {
  padding: 1rem;
  color: var(--foreground);
  font-size: 1.125rem;
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--muted);
  color: var(--primary);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer {
  background: var(--foreground);
  color: hsl(0, 0%, 90%);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer a {
  color: hsl(0, 0%, 80%);
}

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

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: hsl(0, 0%, 100%);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid hsl(222, 47%, 20%);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(0, 0%, 70%);
}

/* ====================================================================
   HERO SECTION
   ==================================================================== */
.hero-grid,
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 500px;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ====================================================================
   ACCORDION / FAQ
   ==================================================================== */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--muted);
}

.accordion-icon {
  transition: transform var(--transition-base);
  font-size: 1.5rem;
  color: var(--primary);
}

.accordion.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion.active .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

/* ====================================================================
   TABS
   ==================================================================== */
.tabs {
  margin-bottom: 2rem;
}

.tab-list {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -2px;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

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

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--background);
}

.timeline-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ====================================================================
   UTILITIES
   ==================================================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: calc(var(--radius) / 2);
  background: var(--muted);
  color: var(--muted-foreground);
}

.badge-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-grid,
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ====================================================================
   ANIMATIONS
   ==================================================================== */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

/* ====================================================================
   PRINT STYLES
   ==================================================================== */
@media print {
  .header, .footer, .mobile-menu, .btn { display: none; }
  body { background: white; color: black; }
}
