/* sdc-styles.css — shared styling for Secure Data Consortium service pages */

* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #2a2a2a;
  background: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
a { color: #1a5490; text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-wrap img { height: 48px; width: auto; }
.brand-text { font-size: 1.1rem; color: #2a2a2a; font-weight: 500; }
nav a {
  margin-left: 1.5rem;
  color: #2a2a2a;
  font-weight: 500;
}
nav a.active { color: #1a5490; }

.hero {
  padding: 3rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 1.75rem;
  color: #2a2a2a;
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}
.hero .tagline {
  font-size: 1.1rem;
  color: #5a5a5a;
  margin: 0 auto 1.5rem;
  max-width: 720px;
}
.hero .cta-row {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-primary {
  background: #1a5490;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.cta-primary:hover { background: #154273; text-decoration: none; color: #ffffff; }
.cta-secondary {
  color: #1a5490;
  border: 1px solid #1a5490;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-block;
}
.cta-secondary:hover { background: #f0f5fb; text-decoration: none; }

main { max-width: 900px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
section {
  padding: 2rem 0;
  border-bottom: 1px solid #f0f0f0;
}
section:last-of-type { border-bottom: none; }
h3 {
  color: #2a2a2a;
  font-size: 1.3rem;
  margin: 0 0 1rem;
  font-weight: 600;
}
h4 {
  color: #2a2a2a;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
ul { padding-left: 0; list-style: none; }
ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}
ul li::before {
  content: "•";
  position: absolute;
  left: 0.4rem;
  color: #1a5490;
  font-weight: bold;
}
ul li strong { color: #2a2a2a; }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.credentials span {
  background: #f0f5fb;
  color: #1a5490;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.engagement-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}
.engagement-row {
  padding: 0.75rem;
  background: #f9f9f9;
  border-left: 3px solid #1a5490;
}
.engagement-row strong {
  display: block;
  color: #2a2a2a;
  margin-bottom: 0.25rem;
}

.from-the-lab {
  background: #f9f9f9;
  border-radius: 4px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.from-the-lab p { margin: 0.5rem 0; color: #4a4a4a; }

.service-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: border-color 0.15s;
}
.service-card:hover { border-color: #1a5490; }
.service-card h4 { margin: 0 0 0.5rem; }
.service-card p { margin: 0.5rem 0; color: #4a4a4a; }
.service-card .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}

.contact-section {
  padding: 2.5rem 1.5rem;
  background: #f7f9fc;
  border-radius: 4px;
  margin-top: 2rem;
}
.contact-section h3 { margin-bottom: 0.75rem; text-align: center; }
.contact-section .intro {
  color: #5a5a5a;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #2a2a2a;
}
.form-field input, .form-field select, .form-field textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: #1a5490;
  box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .req { color: #c53030; }
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
/* Honeypot — hidden from humans, visible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #888;
  font-size: 0.85rem;
  border-top: 1px solid #e5e5e5;
  margin-top: 2rem;
}
footer a { color: #888; }

/* Hero image and inline images */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
}
.hero-image.constrained { max-width: 600px; }
.section-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
}
.section-image.right {
  float: right;
  max-width: 280px;
  margin: 0 0 1rem 1.5rem;
}
.headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 1.5rem auto;
  border: 4px solid #f0f5fb;
}

@media (max-width: 640px) {
  header { flex-direction: column; align-items: flex-start; }
  nav { width: 100%; }
  nav a { margin-left: 0; margin-right: 1rem; display: inline-block; }
  .hero h1 { font-size: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
}
