:root {
  --bg: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;

  --blue: #3f5ea8;
  --blueHover: #355399;

  --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);

  --radius: 16px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      1100px 520px at 12% 10%,
      rgba(99, 102, 241, 0.12),
      transparent 55%
    ),
    radial-gradient(
      1100px 520px at 88% 12%,
      rgba(16, 185, 129, 0.10),
      transparent 60%
    ),
    linear-gradient(to bottom, #f7fafc, #eef2f7);
}

/* Intro */

.intro {
  padding: 46px 18px 26px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.introInner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.introInner h1 {
  margin: 0 0 10px;
  font-family:
    ui-serif,
    Georgia,
    "Times New Roman",
    Times,
    serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.01em;
}

.introText {
  margin: 0 auto;
  max-width: 80ch;
  color: rgba(31, 41, 55, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.introActions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btnPrimary {
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(63, 94, 168, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btnPrimary:hover {
  background: var(--blueHover);
}

.btnGhost {
  background: transparent;
  color: var(--blue);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(63, 94, 168, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btnGhost:hover {
  background: rgba(63, 94, 168, 0.08);
}

/* Provider Cards */

.linksSection {
  padding: 38px 18px 70px;
}

.linksInner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.card {
  min-width: 0;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 41, 55, 0.18);
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.14);
}

.cardLink {
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
}

/* Images */

.cardMedia {
  width: 100%;
  height: clamp(220px, 25vw, 310px);
  background: #f3f4f6;
  overflow: hidden;
}

.cardMediaLarge {
  height: clamp(220px, 25vw, 310px);
}

.cardMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Sean Akers image positioning */

.akersImage {
  object-position: center 50% !important;
}

/* Card content */

.cardBody {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cardTopRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.cardTopRow h2 {
  margin: 0;
  min-width: 0;
  font-family:
    ui-serif,
    Georgia,
    "Times New Roman",
    Times,
    serif;
  font-weight: 600;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.25;
}

.pill {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(31, 41, 55, 0.14);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
}

.cardBody p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.btnSecondary {
  align-self: flex-start;
  margin-top: auto;
  background: var(--blue);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card:hover .btnSecondary {
  background: var(--blueHover);
}

/* Placeholder */

.cardMedia.placeholder {
  position: relative;

  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.14),
    rgba(16, 185, 129, 0.10)
  );
}

.placeholderContent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  padding: 18px;
  color: rgba(31, 41, 55, 0.72);
}

.placeholderTitle {
  font-family:
    ui-serif,
    Georgia,
    "Times New Roman",
    Times,
    serif;
  font-weight: 700;
  font-size: 18px;
  color: rgba(31, 41, 55, 0.84);
}

.placeholderSub {
  font-size: 13px;
  color: rgba(31, 41, 55, 0.62);
}

.cardMedia.placeholder:not(.noImage) .placeholderContent {
  display: none;
}

/* Footer */

.siteFooter {
  padding: 52px 18px 64px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footerInner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 860px) {
  .footerInner {
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
  }
}

.footerText h2 {
  margin: 0 0 10px;
  font-family:
    ui-serif,
    Georgia,
    "Times New Roman",
    Times,
    serif;
  font-weight: 600;
  font-size: 22px;
}

.address {
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.6;
}

.smallNote {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.mapWrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.1);
  box-shadow: var(--shadow);
  background: #f3f4f6;
  min-height: 320px;
}

.mapWrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* Tablet */

@media (max-width: 900px) {
  .linksSection {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cards {
    gap: 14px;
  }

  .cardMedia,
  .cardMediaLarge {
    height: clamp(190px, 28vw, 250px);
  }

  .cardBody {
    padding: 16px;
  }

  .cardTopRow {
    gap: 6px;
  }

  .cardTopRow h2 {
    font-size: 15px;
  }

  .pill {
    font-size: 10px;
    padding: 5px 7px;
  }

  .cardBody p {
    font-size: 13px;
  }

  .btnSecondary {
    padding: 10px 15px;
    font-size: 12px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cardMedia,
  .cardMediaLarge {
    height: clamp(240px, 75vw, 340px);
  }

  .cardTopRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .cardTopRow h2 {
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .pill {
    flex-shrink: 0;
    font-size: 11px;
    padding: 5px 8px;
  }

  .cardBody p {
    font-size: 14px;
  }

  .btnSecondary {
    padding: 12px 18px;
    font-size: 13px;
  }
}