/* Shared public footer. Keep page-specific styles outside this component. */
html body .home-footer {
  --footer-text: #bab6ad;
  --footer-heading: #f8f5ef;
  --footer-accent: #efc66a;
  --footer-rule: #ffffff18;
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  background: #0c0d0f !important;
  border-top: 1px solid #efc66a40 !important;
  color: var(--footer-text) !important;
  font: 400 14px/1.65 Arial, Helvetica, sans-serif !important;
  text-align: left;
}
html body .home-footer *, html body .home-footer *::before, html body .home-footer *::after { box-sizing: border-box; }
html body .home-footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1.25fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,1.25fr) !important;
  align-items: start;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 64px 40px 48px !important;
  gap: 40px !important;
  border: 0;
}
html body .home-footer .footer-grid > div { min-width: 0; grid-column: auto; }
html body .home-footer h2 {
  margin: 0 0 17px;
  padding: 0;
  color: var(--footer-heading) !important;
  font: 600 13px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: none;
}
html body .home-footer p { max-width: 30ch; margin: 16px 0 20px; color: var(--footer-text) !important; font: inherit; letter-spacing: 0; }
html body .home-footer p.footer-contact-intro { margin: 0 0 10px; }
html body .home-footer .footer-links { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 2px; }
html body .home-footer a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  margin: 0 !important;
  padding: 6px 0;
  color: var(--footer-text) !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: 400 14px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
  transition: color .2s ease;
}
html body .home-footer a:hover { color: var(--footer-accent) !important; text-decoration: underline; text-underline-offset: 5px; transform: none; }
html body .home-footer a:focus-visible { color: var(--footer-accent) !important; outline: 2px solid var(--footer-accent); outline-offset: 4px; transform: none; }
html body .home-footer a.footer-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 0; padding: 0; color: var(--footer-accent) !important; text-decoration: none; }
html body .home-footer .footer-brand strong { font: 800 32px/1 Arial, Helvetica, sans-serif; letter-spacing: -.04em; }
html body .home-footer .footer-brand span { font: 600 10px/1.5 Arial, Helvetica, sans-serif; letter-spacing: .2em; color: var(--footer-heading); }
html body .home-footer .bam-social-links { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 20px; width: auto; margin: 0; padding: 0; border: 0; }
html body .home-footer .bam-social-links a { font-size: 12px; min-height: 36px; }
html body .home-footer a.footer-cta { gap: 10px; margin-top: 10px !important; color: var(--footer-accent) !important; font-weight: 600; }
html body .home-footer .footer-utility { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px; max-width: 1200px; width: calc(100% - 80px); margin: 0 auto; padding: 18px 0; border-top: 1px solid var(--footer-rule); }
html body .home-footer .client-resource-links, html body .home-footer .footer-account-links { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 4px 24px; width: auto; max-width: 100%; margin: 0; padding: 0; border: 0; }
html body .home-footer .footer-utility a { font-size: 12px; }
html body .home-footer .footer-bottom { width: 100%; margin: 0; padding: 0 40px 24px; border: 0; color: var(--footer-text) !important; font: 400 11px/1.65 Arial, Helvetica, sans-serif !important; text-align: center; letter-spacing: .02em; }
html[data-theme=light] body .home-footer { --footer-text: #59564f; --footer-heading: #25221c; --footer-accent: #765300; --footer-rule: #76530026; background: #f5f1e9 !important; border-color: #76530040 !important; }
@media(max-width:1100px) {
  html body .home-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 40px 48px !important; }
}
@media(max-width:600px) {
  html body .home-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; padding: 40px 24px 32px !important; gap: 30px 24px !important; }
  html body .home-footer .footer-grid > .footer-brand-column, html body .home-footer .footer-grid > div:last-child { grid-column: 1 / -1; }
  html body .home-footer .footer-brand-column p { max-width: 34ch; }
  html body .home-footer .footer-grid > div:last-child { padding-top: 24px; border-top: 1px solid var(--footer-rule); }
  html body .home-footer a { min-height: 44px; }
  html body .home-footer .footer-utility { width: calc(100% - 48px); gap: 8px; align-items: flex-start; padding: 18px 0 12px; }
  html body .home-footer .footer-account-links, html body .home-footer .client-resource-links { gap: 0 20px; }
  html body .home-footer .footer-bottom { padding: 0 24px 72px; text-align: left; }
}
@media(max-width:350px) {
  html body .home-footer .footer-grid { grid-template-columns: minmax(0,1fr) !important; }
}

/* Footer alignment and responsive spacing, shared across public pages. */
html body .home-footer .footer-grid {
  grid-template-columns: minmax(0,1.25fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1.25fr) !important;
  padding: 48px 32px 36px !important;
  gap: 32px !important;
}
html body .home-footer .footer-grid > div:first-child,
html body .home-footer .footer-grid > div:last-child { grid-column: auto; }
html body .home-footer .footer-grid > div { text-align: left; }
html body .home-footer h2 { margin: 0 0 14px !important; font-size: 12px !important; line-height: 1.5 !important; }
html body .home-footer .footer-links { gap: 3px; }
html body .home-footer .footer-brand strong { color: var(--footer-accent); }
html body .home-footer .footer-brand-column p { margin: 18px 0; max-width: 29ch; }
html body .home-footer .bam-social-links { gap: 8px; }
html body .home-footer .bam-social-links a {
  justify-content: center; min-height: 36px; padding: 7px 11px;
  border: 1px solid var(--footer-rule); border-radius: 6px; font-weight: 600;
}
html body .home-footer a.footer-cta {
  justify-content: center; min-height: 44px; padding: 11px 14px; margin: 12px 0 6px !important;
  border: 1px solid var(--footer-accent); border-radius: 7px;
  color: var(--footer-heading) !important; text-align: center; line-height: 1.5;
}
html body .home-footer .footer-utility { max-width: 1216px; width: calc(100% - 64px); padding: 16px 0; }
html body .home-footer .footer-bottom { max-width: 1280px; margin: 0 auto; padding: 0 32px 28px; text-align: left; }
@media (min-width:601px) and (max-width:1100px) {
  html body .home-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 32px 48px !important; }
  html body .home-footer .footer-grid > div:first-child,
  html body .home-footer .footer-grid > div:last-child { grid-column: auto; }
}
@media (max-width:600px) {
  html body .home-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; padding: 32px 20px 24px !important; gap: 28px 20px !important; }
  html body .home-footer .footer-grid > div:first-child,
  html body .home-footer .footer-grid > div:last-child { grid-column: 1 / -1; }
  html body .home-footer .footer-brand-column p { max-width: 36ch; }
  html body .home-footer .footer-grid > div:last-child { padding-top: 24px; }
  html body .home-footer a { min-height: 44px; }
  html body .home-footer .footer-utility { width: calc(100% - 40px); flex-direction: column; align-items: flex-start; gap: 12px; }
  html body .home-footer .client-resource-links,
  html body .home-footer .footer-account-links { gap: 4px 18px; }
  html body .home-footer .footer-bottom { padding: 0 20px 84px; }
}
@media (max-width:350px) {
  html body .home-footer .footer-grid { grid-template-columns: minmax(0,1fr) !important; }
}

/* Override legacy mobile footer nav rules: social links stay in one row. */
html body .home-footer nav.bam-social-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .home-footer nav.bam-social-links a {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 40px;
  padding: 8px 12px;
}
@media (max-width:600px) {
  html body .home-footer .footer-grid { gap: 24px 20px !important; }
  html body .home-footer .footer-brand-column p { margin: 14px 0 16px; }
  html body .home-footer .footer-links { gap: 0; }
  html body .home-footer .footer-links a { padding: 8px 0; min-height: 44px; }
}
/* Do not inherit page-level navigation or heading presentation. */
html body .home-footer .footer-grid nav { position: static; height: auto; min-height: 0; background: transparent; box-shadow: none; }
html body .home-footer .footer-links a { text-align: left; white-space: normal; }
html body .home-footer .footer-brand { white-space: normal; }
html body .home-footer .footer-grid h2 { max-width: none; text-align: left; }
