/* =========================================================
   DGW.AI — GLOBAL FOOTER
   Include with:
   <link rel="stylesheet" href="components/footer.css">
========================================================= */

.dgw-footer {
    position: relative;
    overflow: hidden;
    padding: 46px 6vw 18px;
    background: var(--grey, #F8F8F8);
    color: var(--dark, #111827);
    border-top: 1px solid rgba(17,24,39,.08);
    box-shadow:
        0 -14px 35px rgba(17, 24, 39, 0.08),
        0 -3px 10px rgba(17, 24, 39, 0.045);
}

.dgw-footer::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243,107,33,.08), rgba(243,107,33,0) 68%);
    pointer-events: none;
}

.dgw-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17,24,39,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,24,39,.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    pointer-events: none;
}

.dgw-footer .footer-inner {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr .8fr;
    column-gap: clamp(32px, 5vw, 72px);
    row-gap: 28px;
}

.dgw-footer .footer-brand,
.dgw-footer .footer-contact,
.dgw-footer .footer-locations,
.dgw-footer .footer-social {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dgw-footer .footer-brand {
    display: flex;
    align-items: flex-start;
}

.dgw-footer .footer-brand a {
    display: inline-block;
}

.dgw-footer .footer-brand img {
    width: min(225px, 100%);
    height: auto;
    display: block;
    object-fit: contain;
}

.dgw-footer .footer-heading {
    margin: 0 0 16px;
    color: var(--dark, #111827);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -.4px;
}

.dgw-footer .footer-heading::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    margin-top: 9px;
    border-radius: 10px;
    background: var(--orange, #F36B21);
}

.dgw-footer .footer-contact p,
.dgw-footer .footer-locations p {
    margin: 0;
    color: rgba(17,24,39,.72);
    font-size: 14px;
    line-height: 1.5;
}

.dgw-footer .footer-contact > p:first-of-type {
    color: var(--dark, #111827);
    font-weight: 500;
}

.dgw-footer .footer-contact .footer-label,
.dgw-footer .footer-locations .footer-label {
    display: block;
    margin-top: 16px;
    margin-bottom: 4px;
    color: var(--dark, #111827);
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.dgw-footer .footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dgw-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 7px;
    color: rgba(17,24,39,.76);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

.dgw-footer .footer-social a::after {
    content: "↗";
    margin-left: 7px;
    color: var(--orange, #F36B21);
    font-size: 11px;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity .25s ease, transform .25s ease;
}

.dgw-footer .footer-social a:hover {
    color: var(--orange-hover, #FD6B00);
    transform: translateX(3px);
}

.dgw-footer .footer-social a:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.dgw-footer .footer-legal {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    padding: 14px 0 2px;
    border-top: 1px solid rgba(17,24,39,.10);
    color: rgba(17,24,39,.55);
    font-size: 12px;
}

.dgw-footer .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.dgw-footer .footer-legal a {
    color: rgba(17,24,39,.62);
    text-decoration: none;
    transition: color .25s ease;
}

.dgw-footer .footer-legal a:hover {
    color: var(--orange-hover, #FD6B00);
}

@media (max-width: 900px) {
    .dgw-footer {
        padding: 40px 32px 18px;
    }

    .dgw-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px 36px;
    }

    .dgw-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .dgw-footer {
        padding: 42px 22px 20px;
    }

    .dgw-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
        row-gap: 32px;
        align-items: start;
    }

    /* Logo gets its own clean full-width row */
    .dgw-footer .footer-brand {
        grid-column: 1 / -1;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .dgw-footer .footer-brand img {
        width: 175px;
    }

    /* Contact + Locations sit side by side */
    .dgw-footer .footer-contact {
        grid-column: 1;
        min-width: 0;
    }

    .dgw-footer .footer-locations {
        grid-column: 2;
        min-width: 0;
    }

    /* Socials below contact */
    .dgw-footer .footer-social {
        grid-column: 1;
        min-width: 0;
    }

    .dgw-footer .footer-heading {
        font-size: 18px;
        line-height: 1.2;
        margin: 0 0 14px;
        letter-spacing: -.3px;
    }

    .dgw-footer .footer-heading::after {
        width: 22px;
        height: 2px;
        margin-top: 8px;
    }

    .dgw-footer .footer-contact p,
    .dgw-footer .footer-locations p {
        font-size: 12.5px;
        line-height: 1.6;
    }

    .dgw-footer .footer-contact > p:first-of-type {
        font-size: 13px;
        font-weight: 600;
        word-break: break-word;
    }

    .dgw-footer .footer-contact .footer-label,
    .dgw-footer .footer-locations .footer-label {
        margin-top: 15px;
        margin-bottom: 4px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .dgw-footer .footer-social a {
        margin-bottom: 7px;
        font-size: 12.5px;
        line-height: 1.4;
    }

    /* Keep social arrows visible on touch devices */
    .dgw-footer .footer-social a::after {
        opacity: 1;
        transform: none;
        margin-left: 6px;
        font-size: 10px;
    }

    /* Legal area stays full width */
    .dgw-footer .footer-legal {
        grid-column: 1 / -1;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 4px;
        padding: 18px 0 0;
        border-top: 1px solid rgba(17,24,39,.10);
        font-size: 10px;
    }

    .dgw-footer .footer-legal-links {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 18px;
    }

    .dgw-footer .footer-legal-links a {
        font-size: 10px;
    }

    .dgw-footer .footer-legal > span {
        font-size: 10px;
        color: rgba(17,24,39,.45);
    }

    .dgw-footer::before {
        width: 300px;
        height: 300px;
        right: -160px;
        top: -160px;
    }

    .dgw-footer::after {
        background-size: 48px 48px;
    }
}

@media (max-width: 380px) {
    .dgw-footer {
        padding: 38px 18px 18px;
    }

    .dgw-footer .footer-inner {
        column-gap: 20px;
        row-gap: 28px;
    }

    .dgw-footer .footer-brand img {
        width: 160px;
    }

    .dgw-footer .footer-heading {
        font-size: 17px;
    }

    .dgw-footer .footer-contact p,
    .dgw-footer .footer-locations p,
    .dgw-footer .footer-social a {
        font-size: 12px;
    }

    .dgw-footer .footer-legal-links {
        gap: 7px 14px;
    }
}
