/* SustainCARE — shared styles (from Home v2 design) */

:root {
  --bg: #fdfcfa;
  --ink: #221f1a;
  --ink-soft: #5c564c;
  --muted: #8a847a;
  --gold: #B58831;
  --gold-dark: #8f6a22;
  --line: #e3ddd2;
  --line-soft: #eee8dd;
  --footer-bg: #f7f4ee;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ─────────────────────────────────────────────── */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark { position: relative; width: 48px; height: 30px; }
.brand-mark span {
  position: absolute; bottom: 0;
  width: 20px; height: 26px;
  transform-origin: bottom left;
  opacity: 0.65;
}
.brand-mark span:nth-child(1) { left: 20px;    background: #525450; transform: rotate(-90deg); opacity: 0.2; }
.brand-mark span:nth-child(2) { left: 20px;  background: #525450; transform: rotate(-67.5deg); opacity: 0.35; }
.brand-mark span:nth-child(3) { left: 20px;  background: #525450; transform: rotate(-45deg); opacity: 0.5;  }
.brand-mark span:nth-child(4) { left: 20px; background: #525450; transform: rotate(-22.5deg); opacity: 0.65; }
.brand-mark span:nth-child(5) { left: 20px; background: #9eca00; transform: rotate(0deg); border-radius: 0 60% 0 0; opacity:0.8;}

.brand-mark--small { width: 44px; height: 27px; }
.brand-mark--small span { width: 18px; height: 23px; }

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 38px;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.brand-name {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.brand-tagline {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 36px);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a.active {
  color: var(--gold-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

/* ── Hero ────────────────────────────────────────────── */

.hero { padding: clamp(16px, 3vw, 32px) var(--pad-x) 0; }

.hero-media {
  position: relative;
  width: 100%;
  height: clamp(260px, 40vw, 520px);
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 4px 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Intro ───────────────────────────────────────────── */

.intro { padding: clamp(36px, 5vw, 72px) var(--pad-x) clamp(32px, 4vw, 56px); }

.intro h1 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.intro h1 .accent { color: var(--gold); }

.intro p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 26px 0 0;
}

/* ── Facts strip ─────────────────────────────────────── */

.facts {
  margin: 0 var(--pad-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.facts > div { padding: 26px 8px; }
.facts dt, .kicker {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.facts dd {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin: 6px 0 0;
}

/* ── Pillars ─────────────────────────────────────────── */

.pillars { padding: clamp(40px, 5vw, 72px) var(--pad-x); }

.pillars h2 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 8px;
}
.pillars > p {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 680px;
  line-height: 1.65;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.pillar { display: flex; flex-direction: column; gap: 14px; }

.pillar-media { width: 100%; aspect-ratio: 3 / 2; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: #f2f1ef;
  color: #6e6c66;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  user-select: none;
}

.pillar h3 {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 23px;
  margin: 0;
}
.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.pillar-num {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}

/* ── Quick links ─────────────────────────────────────── */

.quick-links {
  padding: 0 var(--pad-x) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.quick-links a {
  border: 1px solid var(--line);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-links a:hover { border-color: var(--gold); color: inherit; }
.quick-links .kicker { color: var(--gold-dark); }
.quick-links .card-title {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 21px;
}

/* ── Latest news teaser ──────────────────────────────── */

.latest {
  margin: 0 var(--pad-x);
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 5vw, 64px);
}
.latest-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.latest-head h2 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0;
}
.latest-head .all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
}

.latest-list { display: flex; flex-direction: column; }
.latest-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.latest-item-main {
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
}
.latest-date { font-size: 12.5px; color: var(--muted); }
.latest-title {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 21px);
}
.latest-cta {
  font-size: 12.5px;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  padding: clamp(32px, 5vw, 56px) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand-row .brand-name { font-size: 20px; }
.footer-desc { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }

.footer-address { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.footer-funding {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.funding-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.funding-logo {
  height: 76px;
  width: auto;
  flex: none;
  background: #fff;
  padding: 8px 12px;
}
.funding-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 680px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ── Page header (News / Team / Contact) ─────────────── */

.page-header {
  padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-dark);
  font-weight: 600;
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  margin: 0;
}

.section-title {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head .all-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ── Buttons & tags ──────────────────────────────────── */

.btn-solid {
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 22px;
}
.btn-solid:hover { background: var(--gold-dark); color: var(--bg); }

.btn-outline {
  border: 1px solid #c9c2b4;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 22px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  font-weight: 600;
}
.tag--filled { background: var(--gold); color: var(--bg); }
.tag--outline { border: 1px solid #c9c2b4; color: var(--ink-soft); }

/* ── News articles ───────────────────────────────────── */

.news-main { flex: 1; }

.article {
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 4vw, 52px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 56px);
}
.article:last-child { border-bottom: none; }

.article-head { display: flex; flex-direction: column; gap: 14px; }
.article-meta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.article-date { font-size: 12.5px; color: var(--muted); }
.article h2 {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}
.article-facts { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.article-facts strong { color: var(--gold-dark); }

.article-body { display: flex; flex-direction: column; gap: 16px; }
.article-body p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #3d3931; }
.article-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.article-actions .btn-outline.self-start, .article-body > .btn-outline { align-self: flex-start; }

/* ── Team ────────────────────────────────────────────── */

.pi-section {
  padding: clamp(32px, 4vw, 56px) var(--pad-x);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.pi-card { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.pi-portrait { width: 100%; aspect-ratio: 4 / 5; }
.pi-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-contact { font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.pi-contact a { color: var(--gold-dark); font-weight: 600; }

.pi-bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-column: span 2;
  min-width: min(280px, 100%);
}
.pi-bio h2 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  margin: 0;
}
.pi-role { font-size: 14px; color: var(--muted); }
.pi-bio p {
  margin: 6px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: #3d3931;
  max-width: 640px;
}

.team-section {
  padding: clamp(32px, 4vw, 56px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.team-section--last { border-bottom: none; flex: 1; }
.team-section > .intro-note {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 660px;
}

.hiring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.hiring-card {
  border: 1px dashed #c9c2b4;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hiring-card:hover { border-color: var(--gold); color: inherit; }
.hiring-card .tag--filled { align-self: flex-start; }
.hiring-title {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
}
.hiring-sub { font-size: 14px; color: var(--muted); }

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.advisor-card {
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.advisor-avatar {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: #f2f1ef;
}
.advisor-name { font-family: 'Spectral', serif; font-weight: 600; font-size: 19px; }
.advisor-role {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 5px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.partner-slot {
  border: 1px dashed #c9c2b4;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #b0a996;
  text-align: center;
  padding: 12px;
}

/* ── Contact ─────────────────────────────────────────── */

.contact-grid {
  flex: 1;
  padding: clamp(32px, 4vw, 56px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}
.contact-card .kicker { color: var(--gold-dark); }
.contact-value {
  font-family: 'Spectral', serif;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
}
a.contact-value--email { word-break: break-all; }
.contact-desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

.phd-cta {
  margin: 0 var(--pad-x);
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.phd-cta-text { display: flex; flex-direction: column; gap: 8px; }
.phd-cta-title {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(19px, 2vw, 25px);
  max-width: 640px;
  text-wrap: pretty;
}
.phd-cta .btn-solid { padding: 14px 26px; flex: none; }
