/* ==========================================================================
   "Like to know more?" and the site footer
   ==========================================================================
   Both are printed by footer.php on every page, after the last section.
   The last section never has a "Space below", so the gap above the footer
   area always comes from here.
   ========================================================================== */

/* ---------- Like to know more? (template-parts/site-cta.php) ---------- */
.site-cta { padding-block: var(--space-128); }

/* A page that hides the block (body.no-site-cta): the footer owns the gap
   after the last section instead. */
.no-site-cta .site-footer { margin-top: var(--space-128); }

.site-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--gutter);
    align-items: start;
}

.site-cta-content { max-width: 36rem; }

.site-cta-heading {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.5rem, 1.9vw, 1.75rem);
    line-height: 1.2;
}

.site-cta-content .btn { margin-top: var(--space-32); }

.site-cta-wordmark { justify-self: end; }

@media (max-width: 767px) {
    /* Stacked on phones: a fixed 128px between the button and the wordmark
       (asked for; the fluid --space-128 is only ~64px on a phone). */
    .site-cta-inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 128px;
    }

    /* Centred on phones, like the hero's wordmark. */
    .site-cta-wordmark { justify-self: center; }
}

/* ---------- Footer ---------- */
.site-footer {
    /* 128px more at the bottom than at the top (asked for, after the
       credit line moved to the Contact page). */
    padding-block: var(--space-64) calc(var(--space-64) + var(--space-128));
    background: var(--color-beige);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.35;
}

.site-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gutter);
}

.site-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: var(--space-48);
}

.site-footer-logo { display: inline-flex; flex-shrink: 0; }
.site-footer-logo .site-logo-img { width: 79px; }

.site-footer-text {
    max-width: 16rem;
    font-weight: 300;
}

.site-footer-nav { min-width: 11.75rem; }

.site-footer-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-list a { transition: opacity 0.3s var(--ease); }
.site-footer-list a:hover { opacity: 0.6; }

@media (max-width: 767px) {
    .site-footer-inner,
    .site-footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer-inner { gap: var(--space-48); }
    .site-footer-brand { gap: var(--space-32); }
    .site-footer-nav { min-width: 0; }
    .site-footer-list { align-items: center; }
}
