/* =================================================================
   GOLDEN COMPASS — SITE FOOTER
   ================================================================= */


/* ---------------------- 01. FOOTER FOUNDATION ---------------------- */

/* 01.1. Main footer canvas */
.site-footer {
    color: var(--gc-color-on-dark);
    background-color: var(--gc-color-graphite);
    border-top: var(--gc-border-width) solid var(--gc-border-color-dark);
}


/* ---------------------- 02. MAIN FOOTER LAYOUT ---------------------- */

/* 02.1. Desktop grid structure */
.site-footer-main {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(0, 1.3fr)
        minmax(0, 0.95fr)
        minmax(0, 1.1fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: var(--gc-space-6);
    padding-block: var(--gc-section-padding-compact) var(--gc-space-8);
    align-items: start;
}

/* 02.2. Grid child width constraints */
.site-footer-main > * {
    min-width: 0;
}


/* ---------------------- 03. COMPANY IDENTITY ---------------------- */

/* 03.1. Brand container */
.footer-brand {
    max-width: 30rem;
}

/* 03.2. Brand identity layout */
.footer-brand-identity {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--gc-space-6);
    margin-bottom: var(--gc-space-5);
}

/* 03.3. Company logo wrapper */
.footer-brand-logo {
    flex: 0 1 auto;
    min-width: 0;
}

/* 03.4. WordPress custom logo */
.site-footer .custom-logo-link {
    display: inline-block;
    margin-bottom: 0;
}

.site-footer .custom-logo {
    display: block;
    width: auto;
    max-width: clamp(10rem, 8rem + 5vw, 13rem);
    max-height: 4.5rem;
    height: auto;
    object-fit: contain;
}

/* 03.5. Fallback site name */
.footer-site-name {
    display: inline-block;
    margin-bottom: 0;
    color: var(--gc-color-on-dark);
    font-family: var(--gc-font-display);
    font-size: var(--gc-font-size-2xl);
    font-weight: var(--gc-font-display-bold);
    letter-spacing: var(--gc-letter-spacing-wide-1);
    text-transform: uppercase;
}

/* 03.6. Company description */
.footer-description {
    max-width: 28rem;
    margin-bottom: 0;
    color: color-mix(in srgb, var(--gc-color-on-dark) 78%, transparent);
    
    font-size: var(--gc-font-size-sm);

    font-weight: 400;
    line-height: var(--gc-line-height-body);
}


/* ---------------------- 04. SOCIAL MEDIA ---------------------- */

/* 04.1. Bottom social media container */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--gc-space-2);
    margin: 0;
    flex: 0 0 auto;
}

/* 04.2. Social media links */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    flex: 0 0 auto;
    color: color-mix(in srgb, var(--gc-color-on-dark) 75%, transparent);
    border: var(--gc-border-width) solid
        color-mix(in srgb, var(--gc-color-on-dark) 22%, transparent);
    border-radius: 0.375rem;
    text-decoration: none;
    transition:
        color var(--gc-transition-fast),
        border-color var(--gc-transition-fast),
        background-color var(--gc-transition-fast);
}

/* 04.3. SVG icon dimensions */
.footer-social-link svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

/* 04.4. Hover and keyboard focus states */
.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: var(--gc-color-primary);
    border-color: var(--gc-color-primary);
    background-color: color-mix(in srgb, var(--gc-color-primary) 8%, transparent);
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--gc-color-primary);
    outline-offset: 3px;
}


/* ---------------------- 05. CERTIFICATION BADGE ---------------------- */

/* 05.1. Independent certification container */
.footer-certification {
    flex: 0 0 auto;
    margin: 0;
}

/* 05.2. Great Place to Work image */
.footer-certification-image {
    display: block;
    width: auto;
    max-width: 4rem;
    max-height: 6rem;
    height: auto;
    object-fit: contain;
}


/* ---------------------- 06. FOOTER HEADINGS ---------------------- */

/* 06.1. Navigation and contact headings */
.footer-title {
    margin-bottom: var(--gc-space-5);
    color: var(--gc-color-primary);
    font-family: var(--gc-font-display);
    font-size: var(--gc-font-size-base);
    font-weight: var(--gc-font-display-semibold);
    letter-spacing: var(--gc-letter-spacing-wide-3);
    line-height: var(--gc-line-height-heading);
    text-transform: uppercase;
}


/* ---------------------- 07. FOOTER NAVIGATION ---------------------- */

/* 07.1. Menu list resets */
.footer-menu,
.footer-legal-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 07.2. Primary footer menu structure */
.footer-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gc-space-2);
}

/* 07.3. Menu items */
.footer-menu li {
    margin: 0;
    max-width: 100%;
}

/* 07.4. Navigation links and underline animation */
.footer-menu a {
    position: relative;
    display: inline-block;
    max-width: 100%;

    color: color-mix(in srgb, var(--gc-color-on-dark) 76%, transparent);
    font-size: var(--gc-font-size-sm);
    font-weight: 400;
    line-height: var(--gc-line-height-body);
    text-decoration: none;

    transition: color var(--gc-transition-fast);
}

/* Copper underline */
.footer-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;

    width: 100%;
    height: 2px;

    background-color: var(--gc-color-primary);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform var(--gc-transition-base);
}

/* 07.5. Navigation hover and focus states */
.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--gc-color-on-dark);
    text-decoration: none;
}

.footer-menu a:hover::after,
.footer-menu a:focus-visible::after {
    transform: scaleX(1);
}



/* ---------------------- 08. CONTACT AREA ---------------------- */

/* 08.1. Contact description */
.footer-contact-copy {
    margin-bottom: var(--gc-space-5);
    color: color-mix(in srgb, var(--gc-color-on-dark) 72%, transparent);
    font-size: var(--gc-font-size-sm);
    font-weight: 400;
    line-height: var(--gc-line-height-body);
}

/* 08.2. Footer contact button */
.btn-footer {
    --gc-btn-wipe-color: var(--gc-btn-wipe-overlay-ghost);
    --bs-btn-color: var(--gc-color-on-dark);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: color-mix(in srgb, var(--gc-color-white) 38%, transparent);
    --bs-btn-hover-color: var(--gc-color-white);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: var(--gc-color-white);
    --bs-btn-active-color: var(--gc-color-white);
    --bs-btn-active-bg: color-mix(in srgb, var(--gc-color-white) 10%, transparent);
    --bs-btn-active-border-color: var(--gc-color-white);
}


/* ---------------------- 09. FOOTER BOTTOM ---------------------- */

/* 09.1. Bottom utility layout */
.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gc-space-6);
    padding-block: var(--gc-space-5);
    border-top: var(--gc-border-width) solid var(--gc-border-color-dark);
}

/* 09.2. Copyright and legal group */
.site-footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gc-space-3);
    min-width: 0;
}

/* 09.3. Copyright text */
.footer-copyright {
    margin: 0;
    color: color-mix(in srgb, var(--gc-color-on-dark) 58%, transparent);
    font-size: var(--gc-font-size-xs);
}

/* 09.4. Legal menu layout */
.footer-legal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gc-space-5);
}

/* 09.5. Legal navigation links */
.footer-legal-menu a {
    color: color-mix(in srgb, var(--gc-color-on-dark) 58%, transparent);
    font-size: var(--gc-font-size-xs);
    text-decoration: none;
}

/* 09.6. Legal navigation hover and focus states */
.footer-legal-menu a:hover,
.footer-legal-menu a:focus-visible {
    color: var(--gc-color-primary);
}



/* 09.7. Website developer attribution */
.footer-developer-credit {
    margin: 0;

    justify-self: center;
    text-align: center;

    color: var(--gc-color-on-dark);

    font-size: var(--gc-font-size-xs);
    font-weight: 400;
    line-height: var(--gc-line-height-body);

    opacity: 0.65;

    transition: opacity 300ms ease;
}

/* 09.8. Developer attribution interaction */
.footer-developer-credit:hover,
.footer-developer-credit:focus-within {
    opacity: 1;
}

/* 09.9. Developer name */
.footer-developer-name {
    color: var(--gc-color-primary);
    font-weight: 500;
}



/* ---------------------- 10. RESPONSIVE STYLES ---------------------- */


/* 10.1. Tablet layout: 768px – 1199.98px */
@media (min-width: 768px) and (max-width: 1199.98px) {

    /* Balanced two-column layout */
    .site-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: var(--gc-space-6);
        row-gap: var(--gc-space-7);
    }

    /* Allow footer sections to use available width */
    .footer-brand,
    .footer-services,
    .footer-company,
    .footer-contact {
        max-width: none;
    }

    /* Slightly reduce brand identity spacing */
    .footer-brand-identity {
        gap: var(--gc-space-3);
    }

    /* Maintain the compact badge proportion */
    .footer-certification-image {
        max-width: 4rem;
    }
}


/* 10.2. Mobile layout: up to 767.98px */
@media (max-width: 767.98px) {
    .site-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--gc-space-4);
        row-gap: var(--gc-space-6);
        padding-bottom: var(--gc-space-6);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 32rem;
    }

    .footer-services {
        grid-column: 1;
    }

    .footer-company {
        grid-column: 2;
    }

    .footer-contact {
        grid-column: 1 / -1;
        max-width: 32rem;
    }

    .footer-title {
        margin-bottom: var(--gc-space-4);
    }

    .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--gc-space-5);
    }

    /* Mobile social media alignment */
    .footer-social {
        justify-content: flex-start;
    }

    /* Mobile social media icons */
    .footer-social-link {
        width: clamp(2.125rem, calc(1.375rem + 3vw), 2.75rem);
        height: clamp(2.125rem, calc(1.375rem + 3vw), 2.75rem);
    }
}



/* 10.3. Small mobile layout: up to 359.98px */
@media (max-width: 359.98px) {
    .site-footer-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-brand,
    .footer-services,
    .footer-company,
    .footer-contact {
        grid-column: 1;
    }
}


/* ---------------------- 11. ACCESSIBILITY ---------------------- */

/* 11.1. Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .footer-social-link,
    .footer-menu a,
    .footer-menu a::after {
        transition: none;
    }
}
