/* ===== NFH Medical Student Orientation Workbook ===== */
/* Neighborhood Family Healthcare                       */
/* ================================================== */

:root {
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dark: #0F766E;
  --teal-50: #F0FDFA;
  --teal-100: #CCFBF1;
  --navy: #1E293B;
  --navy-light: #334155;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --warm: #FFFBF5;
  --warm-100: #FFF7ED;
  --warm-200: #FFEDD5;
  --amber: #F59E0B;
  --amber-light: #FCD34D;
  --red-soft: #EF4444;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm);
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TOP NAV ===== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13,148,136,0.1);
  transition: box-shadow 0.3s;
}
.top-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.nav-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.nav-brand-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand-text span { color: var(--teal); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--teal-dark);
  background: var(--teal-50);
}
.mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  color: var(--navy);
}
.mobile-toggle svg { width: 24px; height: 24px; }

/* ===== HERO ===== */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--warm) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--teal-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-dark);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero p {
  font-size: 18px;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
  transition: all 0.3s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.35);
}
.hero-cta svg { width: 18px; height: 18px; }

/* ===== LAYOUT ===== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION ===== */
.section { padding: 60px 0; }
.section + .section { border-top: 1px solid rgba(13,148,136,0.08); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-label .icon {
  width: 28px; height: 28px;
  background: var(--teal-50);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-intro {
  font-size: 16.5px;
  color: var(--slate);
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.7;
}

/* ===== TEAM CARDS ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: white;
}
.team-card:nth-child(1) .team-avatar { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.team-card:nth-child(2) .team-avatar { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.team-card:nth-child(3) .team-avatar { background: linear-gradient(135deg, #F59E0B, #D97706); }
.team-card:nth-child(4) .team-avatar { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.team-name { font-weight: 600; font-size: 15px; color: var(--navy); }
.team-role { font-size: 13px; color: var(--slate); margin-top: 2px; }

/* ===== CALLOUT BOXES ===== */
.callout {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.65;
}
.callout .callout-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.callout-tip {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
}
.callout-tip .callout-icon { background: var(--teal-100); }
.callout-warn {
  background: var(--warm-100);
  border: 1px solid var(--warm-200);
}
.callout-warn .callout-icon { background: var(--warm-200); }
.callout-alert {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.callout-alert .callout-icon { background: #FECACA; }

/* ===== TABLES ===== */
.status-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
}
.status-table th {
  background: var(--navy);
  color: white;
  text-align: left;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-table td {
  padding: 13px 20px;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.status-table tr:nth-child(even) td { background: var(--teal-50); }
.status-table tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  font-family: 'DM Sans', monospace;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }
.badge-slate { background: #F1F5F9; color: var(--navy-light); }

/* ===== WORKFLOW TABLE ===== */
.workflow-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
}
.workflow-table th {
  background: var(--navy);
  color: white;
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workflow-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: top;
}
.workflow-table tr:nth-child(even) td { background: rgba(13,148,136,0.02); }
.workflow-table tr:last-child td { border-bottom: none; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
}

/* ===== ACCORDION ===== */
.accordion { margin: 24px 0; }
.accordion-item {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.accordion-item:hover { box-shadow: var(--shadow-md); }
.accordion-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--teal-50); }
.accordion-icon {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--teal-50);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.accordion-icon svg {
  width: 14px; height: 14px;
  color: var(--teal);
  transition: transform 0.3s;
}
.accordion-item.open .accordion-icon svg { transform: rotate(180deg); }
.accordion-item.open .accordion-icon { background: var(--teal); }
.accordion-item.open .accordion-icon svg { color: white; }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--navy-light);
  line-height: 1.75;
}
.accordion-body-inner p { margin-bottom: 12px; }
.accordion-body-inner ul {
  margin: 10px 0 14px 18px;
  list-style: none;
}
.accordion-body-inner ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.accordion-body-inner ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.accordion-body-inner strong { color: var(--navy); }

/* ===== VIDEO EMBED ===== */
.video-section {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 32px 0;
}
.video-section-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.video-section-header .play-icon {
  width: 36px; height: 36px;
  background: #FF0000;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.video-section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.video-section-header p {
  font-size: 13px;
  color: var(--slate);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== CHECKLIST ===== */
.checklist { margin: 20px 0; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 14.5px;
  line-height: 1.6;
}
.checklist-item:last-child { border-bottom: none; }
.check-box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--teal-100);
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  margin-top: 2px;
}
.check-box:hover { border-color: var(--teal); }
.check-box.checked {
  background: var(--teal);
  border-color: var(--teal);
}
.check-box.checked svg { opacity: 1; }
.check-box svg {
  width: 13px; height: 13px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

/* ===== HALF SHEET FLOW ===== */
.halfsheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.flow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.flow-step-marker {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-50);
  border: 2px solid var(--teal-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal-dark);
}
.flow-step-content {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex: 1;
  box-shadow: var(--shadow-sm);
}
.flow-step-content h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.flow-step-content p {
  font-size: 14px;
  color: var(--slate);
}

/* ===== CONDUCT CARDS ===== */
.conduct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.conduct-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.conduct-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.conduct-card h3 .badge-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.conduct-card ul {
  list-style: none;
  margin: 0;
}
.conduct-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--navy-light);
}
.conduct-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.conduct-card.prep ul li::before { background: var(--teal); }
.conduct-card.interact ul li::before { background: #8B5CF6; }
.conduct-card.etiquette ul li::before { background: var(--amber); }

/* ===== OBSERVATION FOCUS ===== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* ===== DO NOT LIST ===== */
.donot-list { margin: 20px 0; }
.donot-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  background: #FEF2F2;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.6;
}
.donot-item .x-icon {
  flex-shrink: 0;
  color: var(--red-soft);
  font-weight: 700;
  font-size: 16px;
  margin-top: 1px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
}
.site-footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: white;
  margin-bottom: 8px;
}
.site-footer a { color: var(--teal-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 68px; left: 0; right: 0;
  height: 3px;
  background: rgba(13,148,136,0.1);
  z-index: 999;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  width: 0%;
  transition: width 0.1s;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .mobile-toggle { display: block; }
  .hero { padding: 120px 20px 60px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .halfsheet-grid { grid-template-columns: 1fr; }
  .status-table { font-size: 13px; }
  .status-table th, .status-table td { padding: 10px 12px; }
  .workflow-table { font-size: 12.5px; }
  .workflow-table th, .workflow-table td { padding: 9px 10px; }
  .section { padding: 40px 0; }
}
