/* 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:footer-social-icons START */
.ocf-footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.ocf-footer-social a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--ocf-body-alt) 48%, transparent);
    border-radius: 50%;
    color: var(--ocf-heading-alt);
    transition: color var(--motion-duration) ease, background-color var(--motion-duration) ease, border-color var(--motion-duration) ease;
}

.ocf-footer-social a:hover,
.ocf-footer-social a:focus-visible {
    color: var(--ocf-primary);
    background: var(--ocf-heading-alt);
    border-color: var(--ocf-heading-alt);
}

.ocf-footer-social a:focus-visible { outline: 2px solid var(--ocf-heading-alt); outline-offset: 3px; }
.ocf-footer-social svg { width: 20px; height: 20px; }
/* OCF_AGENT_BLOCK:footer-social-icons END */

/* OCF_AGENT_BLOCK:footer-partnership-credit START */
.ocf-footer-partnership {
  margin: 24px auto 0;
  padding: 16px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ocf-body-alt) 24%, transparent);
  color: color-mix(in srgb, var(--ocf-body-alt) 82%, transparent);
  font-size: var(--font-small-size);
  line-height: 1.5;
  text-align: center;
}

.ocf-footer-partnership a {
  color: var(--ocf-heading-alt);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ocf-heading-alt) 45%, transparent);
  text-underline-offset: 3px;
}

.ocf-footer-partnership a:hover,
.ocf-footer-partnership a:focus-visible {
  color: var(--ocf-body-alt);
  text-decoration-color: currentColor;
}
/* OCF_AGENT_BLOCK:footer-partnership-credit END */
