/* === Base Styles === */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #e0f2fe, #c7d2fe, #ddd6fe);
  color: #1f2937;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  color: #1e40af; /* deeper blue accent */
  line-height: 1.25;
  margin-top: 0.75em;
  margin-bottom: 0.5em;
}

p, li {
  color: #374151;
  font-size: 1rem;
}

/* === Header & Navigation === */
header {
  background: #ffffff;
  padding: 1em 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1em;
  max-width: 1000px;
  margin: 0 auto;
}

nav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.75em 1em;
  min-width: 100px;
  text-decoration: none;
  background: #e5e7eb;
  color: #1f2937;
  border-radius: 0.5em;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

nav a.active, nav a:hover {
  background: #2563eb;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 4em 1em;
  border-radius: 1rem 1rem 0 0;
  text-align: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  max-width: 900px;
  margin: 3em auto 0 auto;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero .button {
  background-color: white;
  color: #2563eb;
  font-weight: 700;
  padding: 0.75em 2em;
  border-radius: 0.5em;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
}

.hero .button:hover {
  background-color: #e0e7ff;
}

/* === Main Layout === */
main {
  padding: 3em 2em;
  max-width: 900px;
  margin: 3em auto 5em auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  main {
    padding: 4em 3em;
  }
}

main p, main li {
  line-height: 1.6;
  margin-bottom: 1em;
}

/* === Lists === */
ul {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
  font-size: 1.05rem;
}

/* === Buttons === */
.button {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.75em 1.5em;
  background: #10b981;
  color: white;
  border-radius: 0.5em;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

.button:hover {
  background: #059669;
}

/* === Form Styles === */
input,
textarea {
  width: 100%;
  padding: 0.75em;
  margin: 0.5em 0 1em 0;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

button {
  background: #2563eb;
  color: white;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 0.5em;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background: #1d4ed8;
}

/* === Blockquotes / Testimonials === */
blockquote {
  margin: 2em 0;
  border-left: 5px solid #2563eb;
  background: #f0f4ff;
  border-radius: 0.5em;
  padding: 1.5em 2em;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  font-style: italic;
  color: #1e293b;
}

cite {
  display: block;
  margin-top: 1em;
  font-style: normal;
  font-weight: 700;
  text-align: right;
  color: #2563eb;
  font-size: 0.95rem;
}

.testimonials-wrapper {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 2rem 0;
}

/* === Investigators Section === */
.investigators {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 2em;
}

.investigators section {
  background: rgba(255, 255, 255, 0.95);
  border-left: 5px solid #dbdde0;
  border-radius: 1em;
  padding: 1.5em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.07);
  color: #1f2937;
}

.investigators section h2 {
  color: #2563eb;
  margin-top: 0;
}

/* === Card Layout for Services === */
.card-grid {
  display: grid;
  gap: 2em;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2em;
}

.card {
  background: white;
  border-radius: 1em;
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  padding: 1.5em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.card h3 {
  margin-top: 0;
  color: #1e40af;
  font-weight: 700;
}

/* === Call to Action === */
.cta {
  background: linear-gradient(to right, #4f46e5, #3b82f6);
  color: white;
  text-align: center;
  padding: 3em 2em;
  border-radius: 1em;
  margin: 3em 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 16px rgba(63, 81, 181, 0.6);
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.cta .button {
  background: white;
  color: #1e3a8a;
  font-weight: 700;
  margin-top: 1em;
  padding: 0.75em 2em;
  border-radius: 0.5em;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.cta .button:hover {
  background: #dbeafe;
}

/* === Footer === */
footer {
  background-color: #f5f5f5;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid #ddd;
  box-shadow: inset 0 1px 0 #eaeaea;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

footer a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
  color: #1e40af;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Accessibility Focus Outline === */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

/* === Contact Form Section === */
.contact-info p, .contact-info a {
  font-size: 1rem;
  line-height: 1.6;
  display: block;
  margin-bottom: 0.75rem;
  color: #333;
}

.contact-form form {
  max-width: 600px;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form button {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1d4ed8;
}
