/* 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:restored-classic-footer START */
.ocf-footer.heritage-footer,body:has(.ocf-cta) .ocf-footer.heritage-footer{margin:0;padding:76px 32px 60px;background:#fff5cd;color:#000;border-radius:0;font-family:'Poppins',sans-serif;}
.heritage-footer-wrap{max-width:1100px;margin:0 auto;}
.heritage-footer-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px minmax(0,1fr);align-items:start;gap:40px;text-align:center;}
.heritage-footer-column--contact{grid-column:1;grid-row:1;}
.heritage-footer-column--classes{grid-column:3;grid-row:1;}
.heritage-footer-logo{grid-column:2;grid-row:1;display:flex;justify-content:center;align-items:center;}
.heritage-footer-column h2{margin:0 0 23px;font-family:'Chewy',cursive;font-size:25px;font-weight:400;line-height:1.4;letter-spacing:1.3px;text-transform:uppercase;color:#ed639a;}
.heritage-footer-column a{display:block;color:#000;font-size:14px;font-weight:400;line-height:2;text-decoration:none;overflow-wrap:anywhere;}
.heritage-footer-column a:hover{text-decoration:underline;}
.heritage-footer-copyright{margin:64px 0 0;text-align:center;font-size:14px;line-height:1.7;color:#000;}
@media(max-width:760px){.ocf-footer.heritage-footer,body:has(.ocf-cta) .ocf-footer.heritage-footer{padding:50px 24px 35px;}.heritage-footer-grid{grid-template-columns:minmax(0,1fr);gap:35px;}.heritage-footer-column--contact{grid-column:1;grid-row:1;}.heritage-footer-logo{grid-column:1;grid-row:2;}.heritage-footer-column--classes{grid-column:1;grid-row:3;}.heritage-footer-column h2{font-size:24px;margin-bottom:14px;}.heritage-footer-copyright{margin-top:40px;}}
/* OCF_AGENT_BLOCK:restored-classic-footer END */

/* OCF_AGENT_BLOCK:archive-home-white-footer START */
html body.home .ocf-footer.heritage-footer,html body.home:has(.ocf-cta) .ocf-footer.heritage-footer{background:#fff;color:var(--ocf-body);padding-block:72px 64px;}
html body.home .heritage-footer-grid{grid-template-columns:minmax(0,1fr) 280px minmax(0,1fr);gap:48px;}
html body.home .heritage-footer-column h2{font-family:'Poppins',sans-serif;font-size:14px;font-weight:400;line-height:1.7;letter-spacing:0;text-transform:none;color:var(--ocf-body);margin-bottom:28px;}
html body.home .heritage-footer-column a{color:#cc2d70;line-height:2.6;}
html body.home .heritage-footer-copyright{color:var(--ocf-body);font-weight:400;margin-top:64px;}
@media(max-width:760px){html body.home .heritage-footer-grid{grid-template-columns:minmax(0,1fr);gap:32px;}html body.home .ocf-footer.heritage-footer,html body.home:has(.ocf-cta) .ocf-footer.heritage-footer{padding:48px 24px 36px;}html body.home .heritage-footer-column h2{margin-bottom:12px;}html body.home .heritage-footer-copyright{margin-top:36px;}}
/* OCF_AGENT_BLOCK:archive-home-white-footer END */
