/* Hero section with biotech-inspired gradient */
.hero {
  background: linear-gradient(135deg, #0f9cb5 0%, #0a3d62 100%);
  color: white;
  padding: 5rem 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-text h2 {
  font-size: 1.25rem;
  margin-top: 1rem;
  font-weight: 500;
}

/* CTA button styling */
.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  background: #f5f5f5;
  color: #0a3d62;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cta:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Headshot styling */
.hero-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f5f5f5;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-content {
    justify-content: center; /* fully centered on medium screens */
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    margin-top: 2rem;
  }
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #145da0;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

#about { padding: 2rem 2rem; border-radius: 12px; }
#services { background: #f5f9fc; padding: 2rem 2rem; border-radius: 12px; }
#focus { padding: 2rem 2rem; border-radius: 12px; }
#capabilities { padding: 2rem 2rem; border-radius: 12px; }
#contact { background: #dbeef8; padding: 2rem 2rem; border-radius: 12px; }



.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;  /*vertical centering*/
  align-items: center;      /*horizontal centering*/
  text-align: center;       /*text inside is centered*/
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 auto;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.service-card h3 {
  margin: 0 0 0.75rem 0; /* remove default top/bottom margins that break centering */
  text-align: center;
  width: 100%;           /* ensures flex alignment applies correctly */
  color: #0a3d62;        /* biotech deep blue */
  align-self: center;
  word-wrap: break-word;      /* legacy support */
  overflow-wrap: break-word;  /* modern CSS */
  hyphens: auto;              /* optional: allow automatic hyphenation */
}

.service-card p {
  color: #2a2a2a;
  font-size: 0.95rem;
  line-height: 1.4;
}


.footer {
  text-align: center;
  padding: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}

/* Remove AnchorJS link icons from service card headings */
.service-card h3 > a.anchorjs-link {
  display: none !important;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}