/* 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-secondary-logo START */
.ocf-footer-grid { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; }
.ocf-footer-brand-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; }
.ocf-footer-brand-row .ocf-footer-brand { flex: 0 1 auto; min-width: 0; width: max-content; max-width: min(var(--ocf-logo-width), calc(100% - 148px)); }
.ocf-footer-brand-row .ocf-footer-brand .ocf-brand-image { display: block; width: auto; max-width: 100%; height: var(--ocf-logo-height); object-fit: contain; }
.ocf-footer-secondary-logo { display: flex; flex: 0 0 136px; align-items: center; }
.ocf-footer-secondary-image { display: block; width: 100%; height: auto; }
.ocf-footer-secondary-logo:empty { display: none; }
@media (max-width: 1200px) {
  .ocf-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ocf-footer-brand-row { max-width: 520px; }
}
@media (max-width: 639px) {
  .ocf-footer-brand-row { gap: 8px; }
  .ocf-footer-brand-row .ocf-footer-brand { max-width: min(var(--ocf-logo-width), calc(100% - 96px)); }
  .ocf-footer-brand-row .ocf-footer-brand .ocf-brand-image { height: var(--ocf-logo-height-mobile); }
  .ocf-footer-secondary-logo { flex-basis: 88px; }
}
/* OCF_AGENT_BLOCK:footer-secondary-logo END */

/* OCF_AGENT_BLOCK:footer-external-profile-links START */
.ocf-footer-external-links { width: 100%; max-width: 440px; }
.ocf-footer-external-links .diner-profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ocf-footer-external-links .diner-profile-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--ocf-heading-alt) 35%, transparent); border-radius: var(--radius-full); color: var(--ocf-heading-alt); font-family: var(--ocf-font-body), sans-serif; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.ocf-footer-external-links .diner-profile-links a:hover { background: color-mix(in srgb, var(--ocf-heading-alt) 12%, transparent); border-color: var(--ocf-heading-alt); }
.ocf-footer-external-links .diner-profile-links a:focus-visible { outline: 2px solid var(--ocf-heading-alt); outline-offset: 3px; }
.ocf-footer-external-links .diner-profile-links svg { flex: 0 0 12px; }
@media (max-width: 639px) {
  .ocf-footer-external-links { max-width: 100%; }
}
/* OCF_AGENT_BLOCK:footer-external-profile-links END */

/* OCF_AGENT_BLOCK:footer-order-options START */
.ocf-footer-external-links .diner-profile-links li:nth-child(-n+2) a { min-height: 44px; padding: 10px 16px; border-color: var(--ocf-primary); background: var(--ocf-primary); color: var(--ocf-primary-contrast, #fff); font-size: 14px; }
.ocf-footer-external-links .diner-profile-links li:nth-child(-n+2) a:hover { border-color: var(--ocf-primary-hover); background: var(--ocf-primary-hover); }
@media (max-width: 639px) {
  .ocf-footer-external-links .diner-profile-links li:nth-child(-n+2) { flex: 1 1 calc(50% - 8px); }
  .ocf-footer-external-links .diner-profile-links li:nth-child(-n+2) a { width: 100%; justify-content: center; }
}
/* OCF_AGENT_BLOCK:footer-order-options END */

/* OCF_AGENT_BLOCK:diner-colorful-footer START */
.ocf-footer { --lisbon-band: var(--ocf-bg-dark); }
.ocf-footer .ocf-footer-heading,
html[data-theme="dark"] .ocf-footer .ocf-footer-heading {
  color: var(--ocf-secondary);
  font-weight: 800;
}
.ocf-footer-external-links .diner-profile-links a {
  border-radius: 12px;
  border-color: color-mix(in srgb, var(--ocf-secondary) 65%, transparent);
}
.ocf-footer-external-links .diner-profile-links li:nth-child(-n+2) a {
  background: var(--ocf-primary);
  border: 2px solid var(--ocf-heading-alt);
  border-radius: var(--button-radius);
  color: var(--ocf-primary-contrast);
  box-shadow: 3px 3px 0 #292131;
}
.ocf-footer-external-links .diner-profile-links li:nth-child(2) a {
  background: var(--ocf-secondary);
  border-color: var(--ocf-secondary);
  color: var(--ocf-secondary-contrast);
}
.ocf-footer-external-links .diner-profile-links li:nth-child(2) a:hover {
  background: var(--ocf-secondary-hover);
  border-color: var(--ocf-secondary-hover);
}
.ocf-footer-external-links .diner-profile-links li:nth-child(n+3) a:hover {
  background: var(--ocf-secondary);
  border-color: var(--ocf-secondary);
  color: var(--ocf-secondary-contrast);
}
/* OCF_AGENT_BLOCK:diner-colorful-footer END */
