/* ============================================
   Health Care for Alison — Mobile-First Styles
   Prestwood IT Solutions · Web Development Project
   ============================================ */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-primary: #0f766e;
  --color-primary-dark: #0d5c56;
  --color-accent: #14b8a6;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-high: #dc2626;
  --color-medium: #d97706;
  --color-low: #059669;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
}
.logo-back { font-size: 0.95rem; color: var(--color-text-muted); }
.logo-back:hover { color: var(--color-primary); }
.project-badge {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--color-bg);
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}
.nav {
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav a:hover { color: var(--color-primary); }
.nav.open { display: flex; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav { display: flex; }
}

.hero-badge {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}
.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  font-size: 1rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}
.stat-label { font-size: 0.875rem; opacity: 0.9; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: #fff;
  color: var(--color-primary);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

.section {
  padding: 3rem 1rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}
.section-intro {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  max-width: 640px;
}

.steps-grid {
  display: grid;
  gap: 1rem;
}
.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}
.step-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.requirements-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.search-input, .filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
}
.search-input {
  flex: 1;
  min-width: 180px;
}
.filter-select { min-width: 140px; }

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.data-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
.data-table tbody tr:hover { background: rgba(15, 118, 110, 0.04); }
.data-table td { vertical-align: top; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-high { background: #fef2f2; color: var(--color-high); }
.badge-medium { background: #fffbeb; color: var(--color-medium); }
.badge-low { background: #ecfdf5; color: var(--color-low); }
.badge-pending { background: #f1f5f9; color: var(--color-text-muted); }
.table-count {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.developer-section { background: var(--color-surface); }
.developer-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.developer-content h3 {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 1.25rem;
}
.developer-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.developer-content li { margin-bottom: 0.5rem; }
.developer-cta { margin-top: 1.5rem; }
.developer-cta .btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.developer-cta .btn-primary:hover { background: var(--color-primary-dark); }

.footer {
  background: var(--color-text);
  color: #94a3b8;
  padding: 2rem 1rem;
  text-align: center;
}
.footer p { margin: 0.25rem 0; }
.footer-meta { font-size: 0.875rem; opacity: 0.8; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #fff; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 560px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
}
.modal-close:hover { color: var(--color-text); }
.modal-title {
  padding: 1.5rem 1.5rem 0;
  margin: 0;
  font-family: var(--font-serif);
  color: var(--color-primary);
}
.modal-body {
  padding: 1rem 1.5rem 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
}
.modal-body h4 { margin: 1rem 0 0.5rem; color: var(--color-text); }
.modal-body ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.modal-body li { margin-bottom: 0.25rem; }
.modal-body p { margin: 0.5rem 0; }

@media (max-width: 600px) {
  .data-table th:nth-child(n+4),
  .data-table td:nth-child(n+4) { display: none; }
  .requirements-toolbar { flex-direction: column; }
  .search-input, .filter-select { min-width: 100%; }
}
