/* ================================================
   Thornwood AI — Medical Division Extensions
   Extends base styles.css with medical-page components
   ================================================ */

/* --- Medical accent overrides (subtle blue-teal shift) --- */
.medical-page {
  --color-accent-medical: #4ecdc4;
  --color-accent-medical-glow: rgba(78, 205, 196, 0.25);
}

/* ================================================
   Expertise Pillars (3-column grid)
   ================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.4);
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.expertise-card:hover::before { opacity: 1; }

.expertise-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--color-surface-elevated), var(--color-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.expertise-card:hover .expertise-icon {
  border-color: rgba(78,205,196,0.25);
  box-shadow: 0 0 16px rgba(78,205,196,0.1);
}

.expertise-icon svg {
  width: 24px; height: 24px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.expertise-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.expertise-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.expertise-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.expertise-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================
   Use Cases Grid (2x3)
   ================================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.use-case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.use-case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.35);
}

.use-case-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.2);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.use-case-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.use-case-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ================================================
   Team Section
   ================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.4);
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.team-card:hover::after { opacity: 1; }

.team-initials {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(78,205,196,0.15), rgba(78,205,196,0.05));
  border: 2px solid rgba(78,205,196,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.team-role {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.team-bio {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 1.25rem;
}

.team-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.team-credential {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ================================================
   Client Sectors
   ================================================ */
.sectors-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.sector-badge:hover {
  border-color: rgba(78,205,196,0.3);
  background: var(--color-surface-elevated);
}

.sector-badge svg {
  width: 18px; height: 18px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* ================================================
   Medical Stats (wider variant)
   ================================================ */
.medical-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

/* ================================================
   Divider (medical sub-brand)
   ================================================ */
.division-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-border);
}

/* ================================================
   Responsive — Medical Extensions
   ================================================ */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .medical-stats-grid { grid-template-columns: 1fr; gap: 0; }
  .sectors-wrap { justify-content: center; }
}
