/* Footer: a rounded dark panel with grain. Brand column (logo, description, phone/email/address), then Company,
 * Services and Service areas columns with small uppercase primary headings, and a ruled bottom bar. */
.ocf-footer {
    padding-block: 72px;
    margin-bottom: var(--lisbon-inset);
    color: var(--ocf-body-alt);
}

.ocf-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 56px;
}

.ocf-footer-brand-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.ocf-footer-brand { display: inline-flex; }
.ocf-footer-brand .ocf-brand-image { width: var(--ocf-logo-width); height: var(--ocf-logo-height); object-position: left center; }

.ocf-footer-brand-column > p {
    max-width: 360px;
    color: color-mix(in srgb, var(--ocf-body-alt) 88%, transparent);
    font-size: calc(var(--font-body-size) * 0.94);
    line-height: 1.55;
}

.ocf-footer-contact {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.ocf-footer-contact a {
    color: var(--ocf-heading-alt);
    font-size: calc(var(--font-body-size) * 0.94);
    font-weight: var(--font-weight-semibold);
}

.ocf-footer-contact a:hover { color: var(--ocf-heading-alt); text-decoration: underline; text-underline-offset: 0.25em; }

.ocf-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 56px;
}

.ocf-footer-heading {
    margin-bottom: 16px;
    color: color-mix(in srgb, var(--ocf-primary) 80%, var(--ocf-heading-alt));
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[data-theme="dark"] .ocf-footer-heading { color: color-mix(in srgb, var(--ocf-primary) 70%, var(--ocf-dark-heading)); }

.ocf-footer-links {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ocf-footer-links a {
    color: var(--ocf-heading-alt);
    font-size: calc(var(--font-body-size) * 0.94);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}

.ocf-footer-links a:hover { color: var(--ocf-heading-alt); text-decoration: underline; text-underline-offset: 0.25em; }

.ocf-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--ocf-body-alt) 45%, transparent);
    color: color-mix(in srgb, var(--ocf-body-alt) 88%, transparent);
    font-size: var(--ocf-font-small-size);
}

.ocf-footer-bottom div { display: flex; flex-wrap: wrap; gap: 6px; }
.ocf-footer-bottom div a + a::before { content: "·"; margin-right: 6px; }
.ocf-footer-bottom a:hover { color: var(--ocf-heading-alt); }

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

@media (max-width: 639px) {
    .ocf-footer { padding-block: 48px; margin-bottom: 0; }
    .ocf-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .ocf-footer-columns > nav:last-child:nth-child(3) { grid-column: 1 / -1; }
    .ocf-footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; }
}

/* With the CTA on the page, the footer continues its panel: square top corners, no gap, and a hairline above the
 * columns instead of the top padding. */
body:has(.ocf-cta) .ocf-footer { margin-top: 0; padding-top: 0; }

body:has(.ocf-cta) .ocf-footer.lisbon-panel--inset::before,
body:has(.ocf-cta) .ocf-footer.lisbon-grain::after { border-radius: 0 0 var(--lisbon-panel-radius) var(--lisbon-panel-radius); }

body:has(.ocf-cta) .ocf-footer-grid {
    padding-top: 56px;
    border-top: 1px solid color-mix(in srgb, var(--ocf-body-alt) 22%, transparent);
}

@media (max-width: 639px) {
    body:has(.ocf-cta) .ocf-footer-grid { padding-top: 40px; }

    /* Phones: the footer runs edge to edge with square corners, like the other inset panels. */
    .ocf-footer.lisbon-panel--inset::before,
    .ocf-footer.lisbon-grain::after,
    body:has(.ocf-cta) .ocf-footer.lisbon-panel--inset::before,
    body:has(.ocf-cta) .ocf-footer.lisbon-grain::after { inset: 0; border-radius: 0; }
}

/* OCF_AGENT_BLOCK:koi-chat-widget START */
.kc-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: inherit;
}
.kc-chat__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: #A86125;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(87, 54, 26, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  margin-left: auto;
}
.kc-chat__toggle:hover { transform: scale(1.06); background: #8A4C1C; }
.kc-chat__toggle:focus-visible { outline: 3px solid #E0A458; outline-offset: 3px; }
.kc-chat__icon-close { display: none; }
.kc-chat[data-open="true"] .kc-chat__icon-open { display: none; }
.kc-chat[data-open="true"] .kc-chat__icon-close { display: block; }
.kc-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: #2B2118;
  border: 1px solid rgba(87, 54, 26, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(87, 54, 26, 0.25);
}
.kc-chat__panel[hidden] { display: none; }
.kc-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #A86125;
  border-bottom: 3px solid #E0A458;
  color: #fff;
}
.kc-chat__head strong { display: block; font-size: 16px; line-height: 1.2; color: #fff; }
.kc-chat__head span { font-size: 13px; opacity: 0.9; }
.kc-chat__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.kc-chat__log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}
.kc-chat__msg { display: flex; flex-direction: column; max-width: 88%; }
.kc-chat__msg--bot { align-self: flex-start; }
.kc-chat__msg--user { align-self: flex-end; align-items: flex-end; }
.kc-chat__bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #2B2118;
}
.kc-chat__msg--bot .kc-chat__bubble { background: #F6EEE6; border-bottom-left-radius: 4px; }
.kc-chat__msg--user .kc-chat__bubble { background: #A86125; color: #fff; border-bottom-right-radius: 4px; }
.kc-chat__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kc-chat__actions a {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #A86125;
  color: #A86125;
  text-decoration: none;
}
.kc-chat__actions a:hover { background: #A86125; color: #fff; }
.kc-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}
.kc-chat__chips button {
  font: inherit;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(87, 54, 26, 0.3);
  background: #fff;
  color: #A86125;
  cursor: pointer;
}
.kc-chat__chips button:hover { border-color: #E0A458; background: #FBF1E6; }
.kc-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(87, 54, 26, 0.12);
  background: #FBF8F5;
}
.kc-chat__form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(87, 54, 26, 0.25);
  background: #fff;
  color: #2B2118;
}
.kc-chat__form input::placeholder { color: rgba(43, 33, 24, 0.5); }
.kc-chat__form button {
  flex: 0 0 auto;
  width: 44px;
  border: 0;
  border-radius: 10px;
  background: #A86125;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
@media (max-width: 599px) {
  .kc-chat { right: 14px; bottom: 14px; }
  .kc-chat__toggle { width: 56px; height: 56px; }
  .kc-chat__panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 80px;
    width: auto;
    max-height: calc(100vh - 100px);
  }
}
/* OCF_AGENT_BLOCK:koi-chat-widget END */
