/* ==========================================================================
   Healthcare Complaints Analysis Tool — static site (v3.1)
   Based on the 2022 WordPress/Elementor design; typography enlarged and
   spacing tightened in the 2026-07 revision (body 21px, banner 34px).
   Palette from the live Elementor kit:
     primary  #6EC1E4   accent   #61CE70   button  #05BCFF
     text     #7A7A7A   banner   #D2E0E6   grey bg #F2F2F2
   Fonts: Lato (body), Allerta Stencil (banner title), Roboto (headings/buttons)
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Lato", sans-serif;
  font-size: 21px;
  color: #7A7A7A;
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Bands (full-width background sections) ---- */
.band      { padding: 36px 0; }
.band-blue { background-color: #D2E0E6; }
.band-grey { background-color: #F2F2F2; }

/* ---- Banner ---- */
.banner {
  background-color: #D2E0E6;
  text-align: center;
  padding: 18px 20px;
}
.banner h1 {
  font-family: "Allerta Stencil", sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  color: #000;
}

/* ---- Section headings ---- */
.section-title {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 30px;
  color: #000;
  text-align: center;
  margin-bottom: 28px;
}

/* ---- Intro / two-column splits ---- */
.split {
  display: flex;
  align-items: center;
  gap: 50px;
}
.split-1-2 .split-media { flex: 1; }
.split-1-2 .split-text  { flex: 2; }
.step .split-text  { flex: 1 1 50%; }
.step .split-media { flex: 1 1 50%; text-align: center; }

.lead {
  font-size: 21px;
  font-weight: 600;
  color: #000;
  line-height: 1.7;
}

/* ---- Quotes ---- */
.quote {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 24px 0;
}
.quote blockquote {
  font-size: 21px;
  font-weight: 600;
  color: #000;
  line-height: 1.5;
  margin-bottom: 16px;
}
.quote figcaption {
  font-size: 15px;
  font-style: italic;
  color: #7A7A7A;
}

/* ---- Guide steps ---- */
.step-label {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-transform: capitalize;
  margin-bottom: 12px;
}
.step-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  margin-bottom: 16px;
}
.step p { margin-bottom: 16px; }

/* ---- Buttons ---- */
.button {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #05BCFF;
  padding: 13px 26px;
  border-radius: 0;
  transition: background-color 0.2s;
}
.button:hover { background-color: #04A6E0; }

/* ---- Card grids (Research Evidence / Applications / Related) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: #fff;
  border: 1px solid #E8E8E8;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.07);
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: #000;
  margin-bottom: 20px;
}
.card p { font-size: 15px; margin-bottom: 20px; }
.card-action { margin-top: auto; margin-bottom: 0 !important; }

/* ---- Team ---- */
.team {
  display: flex;
  justify-content: center;
  gap: 60px;
  text-align: center;
}
.team-member {
  text-decoration: none;
  max-width: 300px;
}
.team-member img { margin-bottom: 16px; }
.team-member h3 {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}
.team-member p { color: #7A7A7A; }

/* ---- Footer ---- */
.footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 14px 20px;
}
.footer p { margin: 4px 0; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
  body { font-size: 18px; }
  .split, .step, .step-reverse { flex-direction: column; }
  .step-reverse { flex-direction: column-reverse; }
  .cards { grid-template-columns: 1fr; }
  .team { flex-direction: column; align-items: center; }
  .band { padding: 28px 0; }
  .lead { font-size: 18px; }
  .quote blockquote { font-size: 18px; }
  .banner h1 { font-size: 28px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   v3.1 additions — nav, stats band, sortable evidence tables, contact
   ========================================================================== */

/* ---- Nav (in banner) ---- */
.nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
}
.nav a {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #000;
}
.nav a:hover  { color: #05BCFF; }
.nav a.active { color: #05BCFF; }

/* ---- Stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.2;
  color: #000;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}

/* ---- Card additions (featured evidence) ---- */
.card-source {
  font-size: 13px;
  font-style: italic;
  color: #7A7A7A;
}
.cards-more {
  text-align: center;
  margin-top: 28px;
}

/* ---- Evidence tables ---- */
.section-title-table { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
.evidence-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.evidence-table th {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #000;
}
.evidence-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #E8E8E8;
  vertical-align: top;
}
.evidence-table a { color: #05BCFF; text-decoration: none; }
.evidence-table a:hover { text-decoration: underline; }
/* ---- Sortable tables ---- */
.sortable th { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable th::after { content: " \2195"; color: #9AA6AC; }
.sortable th[data-dir="asc"]::after  { content: " \2191"; color: #000; }
.sortable th[data-dir="desc"]::after { content: " \2193"; color: #000; }

/* ---- Testimonials (stacked quotes, single divider between) ---- */
.testimonials .quote { border-bottom: none; }
.testimonials .quote:last-child { border-bottom: 1px solid #000; }

/* ---- Contact ---- */
.contact-line {
  text-align: center;
  color: #000;
}
.contact-email { font-weight: 600; }

/* ---- Links in body text (AI section, table notes) ---- */
.band p a:not(.button) { color: #05BCFF; text-decoration: none; }
.band p a:not(.button):hover { text-decoration: underline; }

/* ---- Responsive (v3.1) ---- */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 28px; }
}
