/* ===========================================================
   VBC ProtTechHub — stylesheet
   Palette: deep teal/navy primary, warm-white bg, amber accent
   =========================================================== */

:root {
  --navy: #1a3a5c;
  --navy-dark: #12293f;
  --navy-600: #24507d;
  --amber: #f0b429;
  --amber-dark: #d99a12;
  --bg: #fbfaf7;
  --bg-alt: #f2eee6;
  --surface: #ffffff;
  --ink: #1c2430;
  --ink-soft: #4d5a6b;
  --line: #e4ded3;
  --shadow-sm: 0 1px 3px rgba(18, 41, 63, .08);
  --shadow-md: 0 8px 24px rgba(18, 41, 63, .10);
  --radius: 14px;
  --maxw: 1120px;
  --header-h: 72px;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--amber-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }

/* ===== Header / Navbar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--navy); }
.brand-sub { font-size: .72rem; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width .22s ease;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3.5rem, 9vw, 6rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(240, 180, 41, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(36, 80, 125, .55), transparent 55%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-600));
  z-index: -1;
}
.hero-inner { max-width: 820px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--amber);
  margin: 0 0 1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1.2rem;
  letter-spacing: -.01em;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, .86);
  max-width: 640px;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin: 0 0 .5rem;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}
.section-intro { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ===== Research cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7cfc0; }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(26, 58, 92, .08);
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.card-title { font-size: 1.18rem; color: var(--navy); margin: 0 0 .5rem; font-weight: 700; }
.card-text { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ===== News ===== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }
.news-date { color: var(--amber-dark); font-weight: 600; font-size: .9rem; padding-top: .15rem; }
.news-headline { margin: 0 0 .35rem; font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.news-blurb { margin: 0; color: var(--ink-soft); }

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.avatar {
  width: 84px; height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  letter-spacing: .02em;
}
.member-name { margin: 0 0 .25rem; font-size: 1.08rem; color: var(--navy); font-weight: 700; }
.member-role { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ===== Publications ===== */
.pub-list { margin: 0; padding-left: 1.2rem; }
.pub-item { margin-bottom: 1.3rem; padding-left: .4rem; }
.pub-item::marker { color: var(--amber-dark); font-weight: 700; }
.pub-cite { margin: 0 0 .25rem; color: var(--ink); }
.pub-authors { font-weight: 600; color: var(--navy); }
.pub-journal { font-style: italic; }
.pub-year { color: var(--ink-soft); }
.pub-doi { font-size: .88rem; font-weight: 500; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-lead { color: var(--ink-soft); margin: 0 0 1.6rem; }
.contact-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-details li { color: var(--ink); line-height: 1.7; }
.contact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: .25rem;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--navy);
}
.field input,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(36, 80, 125, .15);
}
.form-note { margin: .9rem 0 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form-note.success { color: #1f7a4d; }
.form-note.error { color: #b3261e; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .82);
  padding-top: 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-tagline { margin: .5rem 0 0; font-size: .92rem; max-width: 280px; color: rgba(255, 255, 255, .7); }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .82); font-size: .95rem; }
.footer-links a:hover { color: var(--amber); }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .2s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--amber); color: var(--navy-dark); transform: translateY(-2px); }
.footer-bottom { padding: 1.2rem 0 1.8rem; }
.footer-bottom p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .6); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(78%, 320px);
    height: calc(100vh - var(--header-h));
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateX(105%);
    transition: transform .28s ease;
    padding: 1.4rem;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: .3rem; }
  .main-nav a { display: block; padding: .8rem .4rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .news-item { grid-template-columns: 1fr; gap: .3rem; }
  .news-date { padding-top: 0; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}


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


/* ===========================================================
   Additions for rebuilt dev site
   =========================================================== */

/* ----- Research prose ----- */
.prose { max-width: 820px; }
.prose-q {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 .7rem;
  line-height: 1.35;
}
.prose-q:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin: 0 0 1.1rem; font-size: 1.02rem; }
.prose-quote {
  margin: 1.4rem 0 1.6rem;
  padding: 1.2rem 1.5rem;
  background: var(--surface);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.5;
}
.prose-quote cite {
  display: block;
  margin-top: .8rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* ----- Events ----- */
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.event-card {
  display: flex;
  gap: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.event-date {
  flex: 0 0 auto;
  min-width: 96px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff;
  border-radius: 12px;
  padding: 1rem .7rem;
  align-self: flex-start;
}
.event-day { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.event-yr { display: block; font-size: .85rem; color: var(--amber); font-weight: 600; margin-top: .2rem; }
.event-body { flex: 1; }
.event-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}
.event-badge-live { background: rgba(31,122,77,.12); color: #1f7a4d; }
.event-badge-soon { background: rgba(240,180,41,.18); color: var(--amber-dark); }
.event-title { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--navy); font-weight: 700; line-height: 1.3; }
.event-venue { margin: 0 0 .6rem; font-size: .9rem; color: var(--navy-600); font-weight: 500; }
.event-desc { margin: 0 0 .7rem; color: var(--ink-soft); font-size: .96rem; }
.event-deadlines { margin: 0 0 .7rem; font-size: .9rem; color: var(--ink); }
.event-link { font-weight: 600; font-size: .92rem; }

/* ----- Team additions ----- */
.avatar-img {
  width: 96px; height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.avatar { width: 96px; height: 96px; }
.av-navy { background: linear-gradient(135deg, var(--navy), var(--navy-600)); }
.av-amber { background: linear-gradient(135deg, var(--amber-dark), var(--amber)); color: var(--navy-dark); }
.team-subhead {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 2.6rem 0 1.3rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--line);
}
.team-empty { color: var(--ink-soft); font-style: italic; margin: 0; }

/* ----- Publications (clean line-item style) ----- */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pub;
}
.pub-item {
  margin: 0;
  padding: 1.1rem 0 1.1rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pub-item::before {
  counter-increment: pub;
  content: counter(pub);
  position: absolute;
  left: 0; top: 1.15rem;
  width: 2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .95rem;
  color: var(--amber-dark);
}
.pub-item:last-child { border-bottom: none; }
.pub-title {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: .3rem;
}
.pub-title:hover { color: var(--amber-dark); }
.pub-meta { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.pub-authors { font-weight: 600; color: var(--ink); }
.pub-journal {
  font-style: normal;
  font-weight: 600;
  color: var(--navy-600);
  background: rgba(36,80,125,.08);
  padding: .1rem .5rem;
  border-radius: 6px;
}
.pub-year { color: var(--ink-soft); font-weight: 500; }

/* ----- Footer social as text pill (PubMed) ----- */
.footer-social a {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
}

/* ----- Responsive ----- */
@media (max-width: 820px) {
  .event-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .event-card { flex-direction: column; gap: .9rem; }
  .event-date { align-self: flex-start; }
}



/* ===========================================================
   News section
   =========================================================== */
.news-grid {
  display: grid;
  gap: 1.2rem;
}
.news-card {
  display: flex;
  gap: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card .news-date {
  flex: 0 0 auto;
  min-width: 72px;
  text-align: center;
  align-self: flex-start;
  padding-top: .15rem;
}
.news-card .news-day {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--amber-dark);
  line-height: 1.2;
}
.news-card .news-yr {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: .15rem;
}
.news-body { flex: 1; }
.news-title {
  margin: 0 0 .45rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-title a { color: var(--navy); }
.news-title a:hover { color: var(--amber-dark); }
.news-summary { margin: 0; color: var(--ink-soft); font-size: .96rem; }

@media (max-width: 520px) {
  .news-card { flex-direction: column; gap: .6rem; }
  .news-card .news-date { align-self: flex-start; display: flex; gap: .4rem; align-items: baseline; }
  .news-card .news-yr { margin-top: 0; }
}
