/* Footer: secondary rule, dark band; brand column (logo, description, display-type phone, contact lines) beside
 * three link columns with secondary headings; hairline above the bottom bar. */
.ocf-footer {
    background: var(--cardinal-band);
    color: var(--ocf-body-alt);
}

.ocf-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 340fr) minmax(0, 876fr);
    gap: calc(var(--ocf-grid-gap) * 2.667);
    padding-block: calc(var(--ocf-space-unit) * 4.5) calc(var(--ocf-space-unit) * 3.5);
}

.ocf-footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--ocf-space-unit) * 1.125);
}

.ocf-footer-brand .ocf-brand-image { object-position: left center; }

.ocf-footer-brand-column > p {
    color: var(--ocf-body-alt);
    font-size: calc(var(--font-body-size) * 0.889);
    line-height: 1.625;
}

.ocf-footer-phone {
    color: var(--ocf-heading-alt);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: calc(var(--font-h3-size) * 1.25);
    font-weight: var(--ocf-font-h2-weight);
    line-height: 1.07;
}

.ocf-footer-phone:hover { color: var(--ocf-secondary); }

.ocf-footer-contact {
    display: grid;
    gap: calc(var(--ocf-space-unit) * 0.5);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--ocf-font-small-size);
    line-height: 1.55;
}

.ocf-footer-contact a,
.ocf-footer-contact__row {
    display: inline-flex;
    align-items: flex-start;
    gap: calc(var(--ocf-space-unit) * 0.5);
    color: var(--ocf-body-alt);
}

.ocf-footer-contact a:hover { color: var(--ocf-heading-alt); }

.ocf-footer-icon {
    flex-shrink: 0;
    width: calc(var(--ocf-space-unit) * 1);
    height: calc(var(--ocf-space-unit) * 1);
    margin-top: 0.15em;
    color: var(--ocf-secondary);
}

.ocf-footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--ocf-grid-gap) * 1.5) calc(var(--ocf-grid-gap) * 2.667);
}

.ocf-footer-columns > nav { min-width: calc(var(--ocf-space-unit) * 8); }

.ocf-footer-heading {
    margin-bottom: calc(var(--ocf-space-unit) * 0.875);
    color: var(--ocf-secondary);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: var(--cardinal-label-size);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--cardinal-label-tracking);
    line-height: 1.2;
    text-transform: uppercase;
}

.ocf-footer-links {
    display: grid;
    gap: calc(var(--ocf-space-unit) * 0.5);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: calc(var(--font-body-size) * 0.889);
    line-height: 1.625;
}

.ocf-footer-links a { color: var(--ocf-body-alt); }
.ocf-footer-links a:hover { color: var(--ocf-heading-alt); }

.ocf-footer-bottom {
    border-top: var(--card-border-width) solid var(--ocf-border-alt);
    font-size: var(--ocf-font-small-size);
}

.ocf-footer-bottom .container-global {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--ocf-space-unit) * 0.5) var(--ocf-grid-gap);
    padding-block: var(--ocf-grid-gap);
}

.ocf-footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--ocf-space-unit) * 1.25);
}

.ocf-footer-bottom a:hover { color: var(--ocf-heading-alt); }

@media (max-width: 1023px) {
    .ocf-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .ocf-footer-grid { padding-block: calc(var(--ocf-space-unit) * 3) calc(var(--ocf-space-unit) * 2.5); }
    .ocf-footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--ocf-grid-gap) * 1.333) var(--ocf-grid-gap); }
    .ocf-footer-columns > nav:first-child { grid-column: 1 / -1; }
}

/* OCF_AGENT_BLOCK:afv-chat-widget START */
.af-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: inherit;
}
.af-chat__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: #2456C8;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 42, 92, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  margin-left: auto;
}
.af-chat__toggle:hover { transform: scale(1.06); background: #1B44A3; }
.af-chat__toggle:focus-visible { outline: 3px solid #E9A93B; outline-offset: 3px; }
.af-chat__icon-close { display: none; }
.af-chat[data-open="true"] .af-chat__icon-open { display: none; }
.af-chat[data-open="true"] .af-chat__icon-close { display: block; }
.af-chat__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 360px;
  max-height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #1c2233;
  border: 1px solid rgba(31, 42, 92, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(31, 42, 92, 0.25);
}
.af-chat__panel[hidden] { display: none; }
.af-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1F2A5C;
  border-bottom: 3px solid #E9A93B;
  color: #fff;
}
.af-chat__head strong { display: block; font-size: 16px; line-height: 1.2; color: #fff; }
.af-chat__head span { font-size: 13px; opacity: 0.9; }
.af-chat__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.af-chat__log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}
.af-chat__msg { display: flex; flex-direction: column; max-width: 88%; }
.af-chat__msg--bot { align-self: flex-start; }
.af-chat__msg--user { align-self: flex-end; align-items: flex-end; }
.af-chat__bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #1c2233;
}
.af-chat__msg--bot .af-chat__bubble { background: #EEF1F8; border-bottom-left-radius: 4px; }
.af-chat__msg--user .af-chat__bubble { background: #2456C8; color: #fff; border-bottom-right-radius: 4px; }
.af-chat__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.af-chat__actions a {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #2456C8;
  color: #2456C8;
  text-decoration: none;
}
.af-chat__actions a:hover { background: #2456C8; color: #fff; }
.af-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}
.af-chat__chips button {
  font: inherit;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 92, 0.3);
  background: #fff;
  color: #1F2A5C;
  cursor: pointer;
}
.af-chat__chips button:hover { border-color: #E9A93B; background: #FDF4E3; }
.af-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(31, 42, 92, 0.12);
  background: #F7F8FC;
}
.af-chat__form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 42, 92, 0.25);
  background: #fff;
  color: #1c2233;
}
.af-chat__form input::placeholder { color: rgba(28, 34, 51, 0.5); }
.af-chat__form button {
  flex: 0 0 auto;
  width: 44px;
  border: 0;
  border-radius: 10px;
  background: #2456C8;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
@media (max-width: 599px) {
  .af-chat { right: 14px; bottom: 14px; }
  .af-chat__toggle { width: 56px; height: 56px; }
  .af-chat__panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 80px;
    width: auto;
    max-height: calc(100vh - 100px);
  }
}
/* OCF_AGENT_BLOCK:afv-chat-widget END */

/* OCF_AGENT_BLOCK:afv-footer-logo START */
/* Logo artwork is navy on transparent, so give it a light card on the navy footer. */
.ocf-footer .ocf-brand-image,
footer .ocf-brand-image {
    background: #F5EFE2;
    padding: 10px 14px;
    border-radius: 10px;
    box-sizing: content-box;
}
/* OCF_AGENT_BLOCK:afv-footer-logo END */

/* OCF_AGENT_BLOCK:agency-credit START */
.afv-footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.afv-footer-credit a:hover { color: #E9A93B; }
/* OCF_AGENT_BLOCK:agency-credit END */
