/* body {
  overflow-x: hidden;
  color: #505962;
  background-color: snow;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
} */

h1 {
  /* font: american typewriter; */
  margin-top: 20px;
  color: #1a0000;
  font-size: 32px;
  text-align: center;
}

h2 {
  /* font: american typewriter; */
  font-size: 1.8rem;
  margin-top: 2rem;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 10px;
}

h3 {
  /* font: american typewriter; */
  margin-top: 20px;
  color: #1a0000;
  font-size: 16px;
}

a {
  color: steelblue;
}

/* --------------------------------
   Bio headshot with circular wrap
-------------------------------- */
header[role="banner"] .bio {
  display: flex;
  flex-direction: row;          /* image left, text right */
  justify-content: flex-start;
  align-items: flex-start;      /* align to top edge */
  gap: 1.25rem;
  max-width: 920px;
  margin: 1rem auto 1.25rem;    /* tighten gap under name */
  text-align: left;             /* kill header's text-center for this block */
  flex-wrap: nowrap;            /* keep side-by-side on desktop */
}

header[role="banner"] .bio .headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 160px;              /* fixed column for the photo */
}

header[role="banner"] .bio > div {
  flex: 1 1 auto;               /* text column */
  min-width: 260px;
}

/* --------------------------------
   Logo scroll (deduped)
-------------------------------- */
.logo-band {
  margin: 1.25rem auto 1.75rem; /* less canyon, still breathing room */
  padding-block: .5rem;
  /* text-align: center; */
  position: relative;           /* for edge fades */
}

/* .logo-band h2 {
  margin-bottom: .75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--subhead);
} */

.logo-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;                 /* space between logos */
  overflow-x: auto;
  padding: .5rem 0;
  max-width: 90%;
  margin: 0 auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.logo-scroll::-webkit-scrollbar { height: 8px; }
.logo-scroll::-webkit-scrollbar-thumb { background:#ccc; border-radius:4px; }

.client-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: .8;
  transition: transform .2s, filter .2s, opacity .2s;
}
.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* subtle edge fades */
.logo-band::before,
.logo-band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  pointer-events: none;
}
.logo-band::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(255,255,255,0));
}
.logo-band::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), rgba(255,255,255,0));
}

/* mobile: allow stacking cleanly */
@media (max-width: 600px) {
  header[role="banner"] .bio { flex-wrap: wrap; }
}

/* full-bleed page */
body { margin: 0; }

/* make all containers full-width, no side padding */
.container, .container-narrow, .container-fluid {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* optional: remove grid gutters for a true edge-to-edge grid */
.row.no-gutters { margin-left: 0; margin-right: 0; }
.row.no-gutters > [class*="col-"] { padding-left: 0; padding-right: 0; }

/* content rails: apply to all sections inside <main> */
main > section {
  max-width: 1140px;      /* pick 1040px if you prefer tighter */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;     /* gutter */
  padding-right: 1rem;
}

/* opt-out utility for any future full-bleed sections */
.full-bleed {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* keep section headings consistently inset */
.logo-band {
  text-align: left;
  padding-left: 1rem;   /* matches card/grid padding */
  padding-right: 1rem;  /* keeps symmetry */
  margin: 1.5rem auto;
  max-width: 1040px;    /* same as .container-narrow if you're using it */
}

/* align logo-band heading with other section headers */
.logo-band h2 {
  margin-left: 15px;      /* Bootstrap’s .container padding */
  margin-right: 15px;
}

/* unified section headings */
:root { --h2-size: clamp(1.15rem, 1.8vw, 1.35rem); }

/* Navbar */
.navbar {
  background-color: #060e52d8 !important;
}

/* Navbar links */
.navbar a,
.navbar-nav .nav-link,
.navbar-brand {
  color: #ffffff !important;  /* force white */
}

/* Navbar links hover */
.navbar a:hover,
.navbar-nav .nav-link:hover,
.navbar-brand:hover {
  color: #aad4ff !important;  /* soft light blue on hover */
}

/* Page content width identical to homepage grid */
.content-wrap {
  max-width: 1100px;     /* tune to your home grid width */
  margin: 0 auto;        /* center */
  padding: 0 1rem;       /* inner gutter */
}

/* Cards */
.card {
  position: relative; /* make this the positioning context */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 auto;   /* cards expand equally to match tallest */
  display: flex;
  flex-direction: column;  
}

.provider {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
}

.provider-logo {
  height: 28px;    /* small but visible */
  width: auto;
}

.card:hover {
  box-shadow: 0 0 0.5rem rgba(0,0,0,0.1), 0 0.5rem 1rem rgba(0,0,0,0.1);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

.card-title {
  font-weight: bold;
  color: #004080;
}

.card.wiggle:hover {
  animation: wiggle 0.3s ease-in-out;
}

.card-heading {
  margin-top: 8px;
  margin-bottom: 20px;
  color: #1a0000;
  font-size: 20px;
}

@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(1deg); }
  50%  { transform: rotate(-1deg); }
  75%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

.card.wiggle:hover {
  animation: wiggle 0.3s ease-in-out;
}
