/* TechSpring Tribute — shared styles (built on the original TechSpring brand palette) */

:root {
  --teal: #0c7296;
  --teal-dark: #075069;
  --teal-deep: #04384a;
  --green: #8dbf50;
  --green-light: #a8d36e;
  --bg: #f3f7f9;
  --paper: #ffffff;
  --ink: #1c2a31;
  --muted: #5b6f7a;
  --line: #dbe5ea;
  --radius: 6px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; letter-spacing: -0.015em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; font-weight: 400; }

p { margin: 0 0 1.1em; }

a { color: var(--teal); }
a:hover { color: var(--green); }

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

/* Header */
header.site {
  background: var(--paper);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 1px 4px rgba(7,80,105,0.06);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 14px;
}

.logo-link { display: inline-block; line-height: 0; }
.logo-link img { height: 42px; width: auto; }

nav.site-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

nav.site-nav a, .tabbtn {
  color: var(--teal-dark);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
nav.site-nav a:hover, nav.site-nav a.active,
.tabbtn:hover, .tabbtn.active {
  color: var(--teal);
  border-bottom-color: var(--green);
}

/* Hero */
.hero {
  background: linear-gradient(155deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #e8f2f6;
  padding: 70px 0 60px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--green-light);
  margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 800px; font-weight: 300; }
.hero p.lede {
  font-size: 1.18rem;
  color: #c8dde6;
  max-width: 660px;
}
.hero .cap {
  margin-top: 32px;
  font-size: 0.9rem;
  color: #8fb3c2;
  border-left: 2px solid var(--green);
  padding-left: 14px;
}
.hero-flex {
  display: flex;
  gap: 44px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-flex .hero-copy { flex: 1 1 460px; }
.hero-loop {
  flex: 0 1 300px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 24px rgba(4,56,74,0.25);
}
.hero-loop video { width: 100%; display: block; border-radius: 3px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 34px;
}
.pillar h3 { color: var(--teal); margin-bottom: 8px; }
.pillar .num {
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  text-align: center;
  line-height: 34px;
  margin-bottom: 12px;
}

.quote-block {
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 22px;
  margin: 30px 0;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--teal-dark);
}
.quote-block cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--teal);
  cursor: pointer;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn.ghost:hover { border-color: var(--green); color: var(--green-light); }
section .btn.ghost, .placeholder-card .btn.ghost { color: var(--teal); border-color: var(--teal); }
section .btn.ghost:hover { color: var(--green); border-color: var(--green); }

/* Figure / photos */
figure.photo { margin: 30px 0 0; }
figure.photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
figure.photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Partner list */
.partner-list {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.partner-list span {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  color: var(--teal-dark);
}

/* Timeline */
.timeline { position: relative; margin-top: 40px; padding-left: 26px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
}
.tl-year {
  font-size: 1.05rem;
  color: var(--teal);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.tl-item h3 { margin-bottom: 6px; }
.tl-tags { margin-top: 8px; }
.tag {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--teal-dark);
  background: #eaf3f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 2px 6px 2px 0;
}

/* People wall */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.person h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person .role { color: var(--green); font-size: 0.85rem; margin-bottom: 10px; }
.person p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }
.person .src { font-size: 0.75rem; color: #9aabb3; margin-top: 10px; }

.placeholder-card {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 160px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 30px;
}
.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  border-top: 3px solid var(--green);
}
.project-card .year { font-size: 0.8rem; color: var(--teal); letter-spacing: 0.06em; text-transform: uppercase; }
.project-card h3 { margin-top: 6px; }
.project-card .partner { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }

/* Form */
form.contribute {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 30px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--teal-dark); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c6d4db;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; }

/* Footer */
footer.site {
  background: var(--teal-deep);
  color: #9fbecb;
  padding: 46px 0 34px;
  margin-top: 40px;
  font-size: 0.9rem;
}
footer.site a { color: #cfe3ea; }
footer.site a:hover { color: var(--green-light); }
footer.site .cols {
  display: flex; gap: 50px; flex-wrap: wrap;
  margin-bottom: 26px;
}
footer.site .cols > div { flex: 1 1 200px; }
footer.site h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; font-weight: 400; }
footer.site .footer-mark {
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 14px;
  display: inline-block;
  margin-bottom: 14px;
  line-height: 0;
}
footer.site .footer-mark img { height: 30px; }
footer.site .fine { border-top: 1px solid #0a4a60; padding-top: 20px; font-size: 0.8rem; color: #7099aa; }

.editor-note {
  background: #f0f7ea;
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: #445c2c;
  margin: 26px 0;
}
.editor-note strong { color: #33481f; }

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  section { padding: 40px 0; }
  .hero { padding: 50px 0 44px; }
  .logo-link img { height: 34px; }
}
