/* Custom styles for Hidalgo Research Consulting */

/* Typography improvements */
body {
  font-size: 1.1rem;
  line-height: 1.8;
}

h1, h2, h3 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h2 {
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

/* Homepage hero section */
h2:first-of-type {
  font-size: 2.2rem;
  color: #2980b9;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Service sections */
h3 {
  font-size: 1.5rem;
  color: #34495e;
  margin-top: 2.5rem;
}

/* Improve readability */
p {
  margin-bottom: 1.5rem;
}

/* Lists */
ul {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: #2980b9;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

a:hover {
  border-bottom: 1px solid #2980b9;
  color: #1c5985;
}

/* Email and contact links */
strong + a,
p a {
  font-weight: 500;
}

/* About page styling */
.about-links {
  margin-top: 1.5rem;
}

.about-links .about-link {
  display: inline-flex;
  align-items: center;
  margin: 0.5rem 1rem 0.5rem 0;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.about-links .about-link:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: none;
}

.about-entity {
  margin-bottom: 2rem;
}

/* Contact information styling */
.contact-section p {
  line-height: 2;
}

/* Content spacing */
#quarto-content > * {
  margin-bottom: 1.5rem;
}

/* Spacing improvements */
.quarto-title {
  margin-bottom: 2rem;
}

.quarto-title-block {
  margin-bottom: 2.5rem;
}

/* Footer styling */
.nav-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid #dee2e6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  h2:first-of-type {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .about-links .about-link {
    margin-right: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}
