/* Hide Quarto-generated clutter */

.quarto-title-block,
.anchorjs-link {
  display: none;
}

/* General page styling */

body {
  font-size: 18px;
  line-height: 1.6;
  color: #25313d;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.35rem, 4.5vw, 3.65rem);
  margin-top: 0;
  margin-bottom: 1rem;
  color: #243040;
  max-width: 860px;
}

h2 {
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  color: #223389;
}

h3 {
  margin-top: 0;
  color: #223389;
}

a {
  color: #223389;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #00a6c8;
}

/* Keep the page from spreading too wide on large screens */

.page-layout-full .page-columns {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Logo */

.site-logo {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin-bottom: 2rem;
}

/* Hero section */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 320px);
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 3rem 0;
  border-bottom: 1px solid #e6e9ef;
}

.hero-text {
  min-width: 0;
}

.hero-text p {
  max-width: 760px;
  font-size: 1.12rem;
}

/* Headshot */

.hero-image {
  justify-self: end;
}

.hero-image p {
  margin: 0;
}

.hero-image img {
  display: block;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(34, 51, 137, 0.18);
}

/* Button */

.button {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.78rem 1.15rem;
  border-radius: 9px;
  background: #223389;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: #00a6c8;
  color: white;
}

/* Intro */

.intro {
  max-width: 920px;
  margin: 2.75rem 0 2rem 0;
  font-size: 1.15rem;
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.8rem 0;
}

.card {
  padding: 1.35rem;
  border: 1px solid #dde3ef;
  border-top: 5px solid #00a6c8;
  border-radius: 14px;
  background: #fbfcff;
  box-shadow: 0 4px 14px rgba(34, 51, 137, 0.06);
}

.card:nth-child(2) {
  border-top-color: #92c83e;
}

.card:nth-child(3) {
  border-top-color: #8a4f9e;
}

.card:nth-child(4) {
  border-top-color: #f7941d;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Testimony section */

.testimony {
  max-width: 940px;
  font-size: 0.98rem;
  border-left: 5px solid #223389;
  padding-left: 1.25rem;
}

.testimony p {
  margin-bottom: 1.35rem;
}

/* Contact form */

.contact-intro {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.contact-form {
  max-width: 640px;
  display: grid;
  gap: 0.35rem;
}

.contact-form label {
  font-weight: 700;
  margin-top: 1rem;
  color: #243040;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: #25313d;
  border: 1px solid #c9d2e3;
  border-radius: 9px;
  background: #fbfcff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #223389;
  box-shadow: 0 0 0 3px rgba(34, 51, 137, 0.15);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
  margin-top: 1.4rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Mobile */

@media (max-width: 850px) {
  h1 {
    font-size: 2.35rem;
  }

  .site-logo {
    width: min(520px, 100%);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .hero-image {
    justify-self: start;
    order: -1;
  }

  .hero-image img {
    width: min(220px, 60vw);
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* Print/PDF */

@media print {
  body {
    font-size: 12pt;
  }

  .hero {
    grid-template-columns: 1.7fr 200px;
    gap: 2rem;
    align-items: start;
    padding-top: 1rem;
  }

  .site-logo {
    width: 420px;
  }

  .hero-image img {
    width: 190px;
    max-width: 190px;
    border-radius: 14px;
    box-shadow: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
