/* Organization Management Group — site styles */

:root {
  --navy: #182864;
  --blue: #005bb7;
  --teal-navy: #003b5d;
  --green: #6c8d31;
  --mint: #f3f6ef;
  --mist: #f6f8f9;
  --sky: #e8f0f9;
  --white: #fff;
  --black: #000;

  --serif: "PT Serif", Georgia, serif;
  --sans: "Poppins", Arial, sans-serif;
  --lato: "Lato", Arial, sans-serif;
  --roboto: "Roboto", Arial, sans-serif;

  --container: 1170px;
  --gutter: 20px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }

h1, h2, h3 { font-weight: 400; margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: 970px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Shared section heading with the short underline */
.section-title {
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: 1.8px;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 8px auto 12px;
  background: currentColor;
  opacity: .6;
}
.section-sub {
  margin: 0 0 30px;
  font-style: italic;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 35px 15px 39px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  letter-spacing: .3px;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover, .btn:focus { background: var(--navy); }

.btn-light {
  background: var(--white);
  color: var(--navy);
  font-size: 24px;
  padding: 15px 30px;
}
.btn-light:hover, .btn-light:focus { background: var(--sky); }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 140px;
  padding: 0 37px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.site-logo img { width: 120px; }

.site-nav > ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"],
.site-nav a.is-parent { color: var(--navy); }

.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: 2px; }
.sub-toggle {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 10px 8px 10px 2px;
  cursor: pointer;
  font-size: 14px;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.sub-menu a { padding: 8px 20px; font-size: 14px; }
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.is-open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 22px;
  padding: 10px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 478fr 902fr;
  align-items: center;
  min-height: 400px;
  background: var(--mint);
  overflow: hidden;
}
.hero::before {
  /* tri-colour waves along the bottom, as on the original */
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-waves.png") 50% 100% / 100% auto no-repeat;
  opacity: .2;
  pointer-events: none;
}
.hero-text {
  position: relative;
  padding: 20px 0 20px 60px;
}
.hero h1 {
  color: var(--navy);
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.hero p {
  margin: 0 0 24px;
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: -.1px;
}

/* ---------- Slider ---------- */

.slider { position: relative; padding: 20px 0 0 20px; }
.slides {
  display: grid;
  aspect-ratio: 1170 / 500;
}
.slide {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; }

.slider-arrow {
  position: absolute;
  top: calc(50% + 10px);
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .85);
  font-size: 26px;
  padding: 10px;
  cursor: pointer;
}
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 10px; }
.slider-arrow:hover, .slider-arrow:focus { color: var(--white); }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
}
.slider-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  opacity: .2;
  cursor: pointer;
}
.slider-dots button[aria-current="true"] { opacity: 1; }

/* ---------- Consider this ---------- */

.consider { padding: 50px 0; }
.consider-grid {
  display: grid;
  grid-template-columns: 400fr 293fr 477fr;
  align-items: start;
}
.consider h2 {
  color: var(--blue);
  font-size: 29px;
  padding-top: 10px;
}
.consider h2 i { font-size: 24px; margin-right: 6px; }
.consider-grid > div { padding: 42px 0 0 20px; }
.consider p {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 16px;
}
.consider a { font-size: 16px; letter-spacing: 1.1px; text-decoration: none; }
.consider a:hover { text-decoration: underline; }

/* ---------- Service areas ---------- */

.services {
  position: relative;
  padding: 33px 0 60px;
  background: var(--navy);
  color: var(--white);
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-desktop.jpg") center / cover no-repeat;
  opacity: .1;
}
.services .container { position: relative; }
.services .section-sub { font-weight: 300; letter-spacing: -.1px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1170px;
  margin: 0 auto;
}
.service-card {
  min-height: 288px;
  padding: 33px;
  background: var(--blue);
  text-align: center;
}
.service-card i { font-size: 40px; margin-bottom: 14px; }
.service-card h3 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.service-card p {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: -.2px;
}

/* ---------- How can we help ---------- */

.help {
  position: relative;
  padding: 50px 0;
  background: var(--mist);
  color: var(--teal-navy);
}
.help::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/exclamations-bg.png") 100% 0 / contain no-repeat;
  opacity: .2;
}
.help .container { position: relative; }
.help .section-sub,
.help-foot { color: var(--blue); }
.help .section-sub { margin-bottom: 20px; }

.help-list {
  columns: 2;
  max-width: 440px;
  margin: 0 auto 26px;
  padding: 0;
  list-style: none;
  font-size: 16px;
  letter-spacing: .9px;
}
.help-list li {
  position: relative;
  break-inside: avoid;
  padding: 0 0 14px 22px;
  line-height: 1.1;
}
.help-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.help-foot { margin: 0; font-style: italic; text-align: center; }

/* ---------- Quiz call to action ---------- */

.quiz-cta {
  padding: 33px 0;
  margin-top: 20px;
  background: url("../images/bg-quiz.png") center / cover no-repeat var(--green);
  color: var(--white);
}
.quiz-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}
.quiz-cta h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 31px;
  line-height: 1.45;
  text-align: right;
}
.quiz-cta p {
  margin: 0;
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

/* ---------- Testimonial ---------- */

.fans {
  position: relative;
  padding: 20px 0 40px;
  margin-top: 20px;
  background: var(--sky);
}
.fans::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/bg-charts.jpg") center / cover no-repeat;
  opacity: .13;
}
.fans-inner { position: relative; max-width: 740px; text-align: center; }
.fans-inner > img { margin: 10px auto 0; }
.fans .section-title { color: var(--navy); }
.fans blockquote { margin: 0; }
.fans blockquote p {
  margin: 0 0 20px;
  font-style: italic;
  font-size: 18px;
  line-height: 30px;
}
.fans blockquote footer img { margin: 0 auto 14px; }
.fans cite {
  display: block;
  color: var(--navy);
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
}
.fans blockquote footer span { font-size: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--white); }
.site-footer a { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 380fr 457fr 299fr;
  gap: 0;
  max-width: 1240px;
  padding: 25px 50px 20px;
}

.footer-amc { padding-right: 60px; }
.footer-amc img { width: 320px; margin-bottom: 14px; }
.footer-amc p {
  margin: 0;
  font-family: var(--lato);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -.2px;
  text-align: justify;
}

.footer-locations h3 {
  font-family: var(--roboto);
  font-size: 24px;
  margin-bottom: 10px;
}
.footer-locations dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  row-gap: 16px;
  margin: 0;
  font-family: var(--roboto);
}
.footer-locations dt { font-weight: 700; font-size: 16px; text-decoration: underline; }
.footer-locations dd { margin: 0; font-size: 13px; line-height: 1.6; }
.footer-locations dd a { text-decoration: none; }
.footer-locations dd a[href^="tel"] { text-decoration: underline; }
.footer-locations dd a:hover { text-decoration: underline; }

.footer-cta { text-align: center; padding: 0 10px; }
.footer-tagline {
  margin: 0 0 12px;
  font-family: var(--lato);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}
.footer-cta img { margin: 0 auto 14px; }
.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}
.social a:hover, .social a:focus { background: var(--blue); }

.footer-bar { background: var(--green); }
.footer-bar p {
  margin: 0;
  padding: 8px var(--gutter);
  color: var(--navy);
  font-size: 12px;
  text-align: center;
}
.footer-bar a { color: var(--navy); }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  font-size: 18px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================
   Inner pages
   ========================================================== */

/* Title band at the top of every inner page */
.page-header {
  padding: 40px 0 30px;
  background: var(--sky);
  color: var(--navy);
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 1.8px;
}
.page-header h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 12px auto;
  background: currentColor;
  opacity: .6;
}
.page-header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--blue);
  font-style: italic;
}

.section { padding: 50px 0; }
.section .section-title { color: var(--navy); }
.section .section-sub { color: var(--blue); }
.section .list-cols { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-alt { background: var(--mist); }
.section-mint { background: var(--mint); }

/* Body copy */
.prose {
  max-width: 900px;
  margin: 0 auto;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.7;
}
.prose h2 { font-size: 30px; line-height: 1.3; margin: 0 0 16px; }
.prose h3 { font-size: 24px; line-height: 1.3; margin: 28px 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose img { margin: 0 auto 16px; }
.prose small { font-size: 13px; }

/* Text beside an image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split.top { align-items: start; }

/* Two-column lists */
.list-cols {
  columns: 2;
  column-gap: 40px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.list-cols li {
  position: relative;
  break-inside: avoid;
  margin-bottom: 10px;
  padding-left: 26px;
}
.list-cols li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.list-cols.checks li::before {
  content: "\f00c";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  color: var(--blue);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
}

.center { text-align: center; }
.lead { font-size: 18px; }

/* Service detail cards (Services page) */
.service-grid.detail .service-card { min-height: 0; }
.service-grid.detail .service-card h3 { font-size: 26px; }
.service-grid.detail .service-card p { font-size: 14px; line-height: 1.7; }

/* Testimonial band used on inner pages */
.fans.compact { margin-top: 0; padding: 30px 0 40px; }
.fans blockquote .attribution {
  display: block;
  margin-top: -6px;
  color: var(--navy);
  font-style: italic;
  font-size: 15px;
}
.fans blockquote .client-logo { margin: 16px auto 0; }

/* Raving Fans page */
.testimonials { display: grid; gap: 40px; }
.testimonial {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: center;
  padding: 30px;
  background: var(--white);
  border-left: 4px solid var(--blue);
  box-shadow: 0 2px 10px rgba(24, 40, 100, .08);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-style: italic; margin: 0 0 12px; }
.testimonial cite { font-style: normal; color: var(--navy); }
.testimonial cite strong { display: block; }

/* ---------- Staff profiles ---------- */

.people {
  display: grid;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}
.person-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.person-head img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.person-head h2 {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}
.person-head p {
  margin: 2px 0 0;
  color: var(--navy);
  font-style: italic;
}
.person-bio {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.7;
}
.person-bio p { margin: 0 0 14px; }
.person-bio .creds {
  color: var(--blue);
  font-size: 14px;
  font-style: italic;
}
.person-fun {
  display: grid;
  grid-template-columns: 1fr 161px;
  gap: 24px;
  align-items: center;
  margin-top: 6px;
  padding: 20px 24px;
  background: var(--mint);
  color: var(--navy);
  font-size: 15px;
  line-height: 1.6;
}
.person-fun.no-photo { grid-template-columns: 1fr; }
.person-fun p { margin: 0; }
.person-fun img { width: 161px; }

/* Department services panel (bottom of each staff page) */
.dept-services {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--navy);
}
.dept-services h2 { font-size: 30px; margin-bottom: 12px; }
.dept-services p { margin: 0 auto 20px; max-width: 760px; }
.dept-services .list-cols { display: inline-block; text-align: left; }
.dept-services img { margin: 0 auto; }

/* Staff landing */
.dept-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.dept-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--blue);
  color: var(--white);
  font-size: 17px;
  text-decoration: none;
  transition: background .2s;
}
.dept-links a:hover, .dept-links a:focus { background: var(--navy); }

/* ---------- Imagine page ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.pillars figure { margin: 0; }
.pillars img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillars figcaption {
  margin-top: 12px;
  color: var(--navy);
  font-size: 28px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}
.contact-grid .prose { max-width: none; margin-bottom: 10px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 14px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c5cfdc;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  font: 16px var(--sans);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  font-size: 15px;
}
.form-status:empty { display: none; }
.form-status.ok { background: var(--mint); color: #3c5a14; }
.form-status.error { background: #fdecec; color: #8a1c1c; }
button.btn { border: 0; cursor: pointer; }
button.btn[disabled] { opacity: .6; cursor: wait; }

.office { margin-bottom: 26px; color: var(--navy); }
.office h3 { font-size: 20px; margin-bottom: 6px; }
.office p { margin: 0 0 10px; font-size: 15px; }
.office iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}

/* ---------- Quiz ---------- */

.quiz { max-width: 820px; margin: 0 auto; }
.quiz-intro { color: var(--navy); margin-bottom: 30px; }
.quiz-intro small { display: block; margin-top: 10px; color: #4b5568; }
.quiz-question {
  display: block;
  min-width: 0;
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 0;
  background: var(--mist);
}
.quiz-question legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  color: var(--navy);
  font-size: 18px;
}
.quiz-question legend small { color: #5b6475; font-size: 14px; }
.quiz-question .q-body {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.quiz-question img { width: 64px; flex: none; }
.quiz-question .options { display: grid; gap: 8px; }
.quiz-question label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
}
.quiz-question input { width: 18px; height: 18px; accent-color: var(--blue); }
.quiz-contact { margin: 30px 0 20px; }

/* ---------- News ---------- */

.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: start;
}
.news-list { display: grid; gap: 34px; }
.news-item.has-thumb {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
}
.news-thumb img { width: 140px; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 640px) {
  .news-item.has-thumb { grid-template-columns: 90px 1fr; gap: 16px; }
  .news-thumb img { width: 90px; }
}
.news-item h2 { font-size: 24px; line-height: 1.3; margin-bottom: 4px; }
.news-item h2 a { color: var(--navy); text-decoration: none; }
.news-item h2 a:hover { color: var(--blue); }
.news-meta { margin: 0 0 8px; color: #5b6475; font-size: 14px; }
.news-item p { margin: 0; color: var(--navy); }
.news-item .more { font-size: 15px; white-space: nowrap; }
.news-aside {
  padding: 24px;
  background: var(--mist);
  color: var(--navy);
  font-size: 15px;
}
.news-aside h2 { font-size: 20px; margin: 0 0 8px; }
.news-aside p { margin: 0 0 20px; }
.news-aside p:last-child { margin-bottom: 0; }

/* ---------- News posts ---------- */

.post-header h1 { max-width: 900px; margin: 0 auto; }
.post-cats {
  margin: 0 0 6px !important;
  color: var(--green) !important;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.post-date {
  margin-top: 0 !important;
  color: #5b6475 !important;
  font-style: normal !important;
  font-size: 15px;
}

.post-body { max-width: 860px; }
.post-body::after { content: ""; display: block; clear: both; }
.post-body a { overflow-wrap: anywhere; }
.post-body hr {
  clear: both;
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #d5dce6;
}
.post-body h2, .post-body h3, .post-body h4 { clear: both; color: var(--navy); }
.post-body h4 { font-size: 19px; margin: 24px 0 10px; }
.post-body figure { margin: 0 0 20px; }
.post-body figure img { margin: 0 auto; }
.post-featured img { width: 100%; max-height: 480px; object-fit: cover; }

/* Image at the start of a paragraph sits beside the text */
.post-body p > img:first-child {
  float: right;
  width: auto;
  max-width: min(40%, 300px);
  margin: 4px 0 14px 24px;
}
/* Each such paragraph contains its own image, so floats never stack up beside later text */
.post-body p:has(> img:first-child) { display: flow-root; }

.post-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
}
.post-gallery img {
  flex: 1 1 220px;
  max-width: 100%;
  max-height: 420px;
  margin: 0;
  object-fit: contain;
}
.post-gallery img:only-child { flex: 0 1 auto; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap td, .table-wrap th { padding: 8px 12px; border: 1px solid #d5dce6; vertical-align: top; }

.post-back {
  clear: both;
  margin-top: 40px !important;
  padding-top: 20px;
  border-top: 1px solid #d5dce6;
}
.post-back a { text-decoration: none; font-family: var(--sans); font-size: 15px; }

@media (max-width: 640px) {
  .post-body p > img:first-child { float: none; max-width: 100%; margin: 0 auto 14px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .site-nav a { padding: 10px 8px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .site-header { height: auto; padding: 10px 20px; }
  .site-logo img { width: 90px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 10px 0; }
  .site-nav a { padding: 10px 24px; font-size: 15px; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { padding: 10px 24px; }
  .sub-menu {
    position: static;
    flex-basis: 100%;
    display: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 6px 16px;
  }
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 40px var(--gutter) 10px; }
  .slider { padding: 0 var(--gutter); }
  .slider-arrow.prev { left: 24px; }
  .slider-arrow.next { right: 24px; }

  .consider-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .consider h2 { grid-column: 1 / -1; }
  .consider-grid > div { padding: 0; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px var(--gutter); }
  .footer-amc { padding-right: 0; }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 30px; }

  .consider-grid { grid-template-columns: 1fr; text-align: center; }
  .consider-grid img { margin: 0 auto; max-width: 220px; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }

  .help-list { columns: 1; max-width: 280px; }

  .quiz-grid { grid-template-columns: 1fr; justify-items: center; }
  .quiz-cta h2, .quiz-cta p { text-align: center; }
  .quiz-cta h2 { font-size: 24px; }
  .quiz-cta p { font-size: 18px; line-height: 1.3; }
  .btn-light { font-size: 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-amc img { width: 100%; max-width: 320px; }
  .footer-amc p { text-align: left; }
  .footer-locations dl { grid-template-columns: 1fr; row-gap: 2px; }
  .footer-locations dd { margin-bottom: 12px; }
}

/* Inner pages */
@media (max-width: 900px) {
  .split, .contact-grid, .news-layout { grid-template-columns: 1fr; gap: 30px; }
  .pillars { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .testimonial { grid-template-columns: 1fr; text-align: center; }
  .testimonial img { margin: 0 auto; }
}

@media (max-width: 640px) {
  .page-header h1 { font-size: 30px; }
  .list-cols { columns: 1; }
  .person-head { align-items: flex-start; }
  .person-head img { width: 72px; height: 72px; }
  .person-head h2 { font-size: 19px; }
  .person-fun { grid-template-columns: 1fr; }
  .person-fun img { margin: 0 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .quiz-question .q-body { gap: 16px; }
  .quiz-question img { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}
