/* Cambridge Neurotherapeutics — shared styles */

:root {
  --navy: #0e3f8f;
  --navy-light: #1a56b0;
  --accent: #139ab0;
  --accent-light: #e3f4f6;
  --ink: #16233a;
  --muted: #5a6472;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.brand:hover { text-decoration: none; }

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

nav.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--navy);
  max-width: 780px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}

.scifi-image {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-light); text-decoration: none; }

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  margin-left: 12px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Sections */
section {
  padding: 64px 0;
}

section.alt { background: var(--bg-soft); }

section h2 {
  font-size: 1.7rem;
  color: var(--navy);
  margin: 0 0 12px;
}

section .section-lead {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  nav.main-nav { gap: 18px; }
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  background: var(--bg);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.1rem;
}

.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  text-align: left;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
}

.team-card h3 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 1.05rem;
}

.team-card .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.team-card p.bio {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.placeholder-note {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg-soft);
  margin-top: 36px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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