/* ========================================
   SITE FOOTER
   The counterweight to the header: the page opens on dark glass and
   closes on dark ground. It uses the same deep slate as the floor-plan
   viewer canvas, so the two dark surfaces on the site read as the same
   material rather than two unrelated blacks.
   ======================================== */

.site-footer {
    position: relative;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    /* Modest: the section above the footer already carries its own bottom
       padding, and the two together were leaving a dead band of ~130px. */
    margin-top: clamp(16px, 2.5vw, 36px);
    /* The lit top edge, same three-layer logic as the glass panels: a
       hairline of the brand accent with a bright line just inside it. */
    border-top: 1px solid rgba(104, 152, 168, 0.40);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* A survey grid, barely there — the same drafting-paper device the
   floor-plan viewer uses. It fades out before the base bar so the
   copyright line sits on clean ground. */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right,  rgba(104, 152, 168, 0.11) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(104, 152, 168, 0.11) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 58%);
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 58%);
}

/* ─── Layout ───────────────────────────────────────────────── */

.site-footer__inner {
    position: relative;   /* above the grid texture */
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(30px, 4.5vw, 68px);
    padding-block: clamp(42px, 6vw, 76px) clamp(34px, 4.5vw, 56px);
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ─── Brand column ─────────────────────────────────────────── */

.site-footer__logo {
    display: inline-block;
    text-decoration: none;
}

.site-footer__logo-img {
    display: block;
    width: auto;
    max-height: 62px;
    max-width: 260px;
}

.site-footer__logo-img.logo-type-symbol     { max-height: 56px; max-width: 56px; }
.site-footer__logo-img.logo-type-horizontal { max-height: 52px; max-width: 280px; }

.site-footer__logo-text {
    font-size: var(--fs-h3);
    font-weight: 700;
    letter-spacing: var(--ls-heading);
    color: #fff;
}

.site-footer__about {
    max-width: 44ch;
    margin: clamp(18px, 2.4vw, 26px) 0 0;
    font-size: var(--fs-small);
    line-height: 1.75;
    color: var(--footer-text);
}

.site-footer__social-label {
    margin: clamp(24px, 3vw, 32px) 0 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: var(--ls-eyebrow);
    text-indent: var(--ls-eyebrow);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Squares, not circles — the site's corners are all in the 2–8px range
   and a row of discs would be the only round thing on the page. */
.site-footer__social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--footer-text);
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
                color 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
    .site-footer__social a:hover {
        background-color: var(--primary);
        border-color: var(--accent);
        color: #fff;
    }
}

.site-footer__social a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ─── Column headings ──────────────────────────────────────── */

.site-footer__heading {
    margin: 0;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: var(--ls-eyebrow);
    text-indent: var(--ls-eyebrow);
    text-transform: uppercase;
    color: #fff;
}

.site-footer__col-rule {
    display: block;
    width: 38px;
    height: 1px;
    margin: 14px 0 22px;
    background-color: var(--accent);
}

/* ─── Sitemap ──────────────────────────────────────────────── */

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.site-footer__menu li + li { margin-top: 2px; }

.site-footer__menu a {
    position: relative;
    display: inline-block;
    padding: 6px 0 6px 0;
    font-size: var(--fs-small);
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

/* A drafting tick that draws itself in on hover, rather than the text
   simply changing colour. */
.site-footer__menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
    .site-footer__menu a:hover {
        color: #fff;
        padding-left: 22px;
    }
    .site-footer__menu a:hover::before { width: 14px; }
}

.site-footer__menu a:focus-visible {
    color: #fff;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* The page you are on keeps the tick permanently. */
.site-footer__menu .current-menu-item > a,
.site-footer__menu .current_page_item > a {
    color: #fff;
    padding-left: 22px;
}

.site-footer__menu .current-menu-item > a::before,
.site-footer__menu .current_page_item > a::before { width: 14px; }

/* ─── Contact ──────────────────────────────────────────────── */

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    font-size: var(--fs-small);
    line-height: 1.55;
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.site-footer__contact-item svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--accent);
    transition: color 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
    .site-footer__contact-item:hover,
    .site-footer__contact-item:hover svg { color: #fff; }
}

.site-footer__contact-item:focus-visible {
    color: #fff;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-footer__cta {
    margin-top: clamp(20px, 2.6vw, 28px);
}

/* ─── Base bar ─────────────────────────────────────────────── */

.site-footer__base {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.site-footer__base-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding-block: 20px;
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.48);
}

.site-footer__base-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer__legal {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.48);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.site-footer__legal:hover,
.site-footer__legal:focus-visible { color: #fff; }

/* Resets the theme's default <button> fill — this is a text control,
   not a call to action, and must not compete with the CTA above it. */
.site-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background-color: transparent;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
                background-color 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
    .site-footer__top:hover {
        color: #fff;
        border-color: var(--accent);
        background-color: rgba(255, 255, 255, 0.06);
    }
}

.site-footer__top:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 3px !important;
}

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(28px, 5vw, 44px);
    }

    /* The brand block runs the full width above the two link columns —
       at this size a third of the row is too narrow for the logo and a
       44-character paragraph. */
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .site-footer__about { max-width: none; }

    .site-footer__cta { width: 100%; }

    .site-footer__base-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .site-footer__base-right {
        width: 100%;
        justify-content: space-between;
    }
}
