/*
 * HVEA footer redesign: desktop target + tablet/mobile layouts.
 * Load AFTER the existing theme/footer CSS, or replace the old footer CSS.
 * This stylesheet uses the CURRENT footer.php HTML; no PHP markup changes required.
 * The light bridge SVG is embedded so Additional CSS / caching paths cannot break it.
 */

.site-footer {
    position: relative;
    margin: 0;
    padding: 0;
    color: #111;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.site-footer .footer-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
    padding: 92px 0 22px;
}

/* Image-backed decorative wave; embedded here to avoid an extra HTTP request. */
.site-footer .footer-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221400%22%20height%3D%22200%22%20viewBox%3D%220%200%201400%20200%22%3E%3Cpath%20fill%3D%22%23f0f0f0%22%20d%3D%22M0%20130%20C215%20129%20352%204%20700%204%20C1042%204%201180%2072%201380%20130%20L1380%20200%20L0%20200%20Z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M202%20200%20C276%20117%20456%2040%20705%2040%20C935%2040%201126%20109%201180%20200%20Z%22%2F%3E%3C%2Fsvg%3E") center bottom / 1400px 200px no-repeat;
    opacity: 1;
}

/*
.site-footer .footer-inner > .container {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 1394px;
    max-width: 1600px;
    padding: 0;
    margin: 0 auto;
}
*/

/* Reference desktop: 306px from office 1 to office 2; tools at far right. */
.site-footer .footer-top {
    display: grid;
    grid-template-columns: 260px 340px minmax(0, 1fr);
    column-gap: 46px;
    row-gap: 0;
    align-items: start;
    text-align: left;
}

.site-footer .footer-address--primary { grid-column: 1; }
.site-footer .footer-address--secondary { grid-column: 2; }
.site-footer .footer-utilities { grid-column: 3; }

.site-footer .footer-address {
    min-width: 0;
    opacity: 1;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    color: #111;
}

.site-footer .footer-address h2 {
    color: #111;
    margin: 0 0 8px;
    padding: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    letter-spacing: 0;
    text-align: left;
}

.site-footer .footer-address p {
    margin: 0 0 26px;
    padding: 0;
    font-size: inherit;
    line-height: 24px;
    color: #111;
    text-align: left;
}
.site-footer .footer-address p:last-child { margin-bottom: 0; }
.site-footer .footer-address a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer .footer-address a[href^="tel:"] {
    font-weight: inherit;
    text-decoration: none;
}

.site-footer .footer-utilities {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 29px;
    padding-right: 18px;
}

/* GTranslate is still supplied by [gtranslate]; only its visible switcher is styled. */
.site-footer .footer-translate,
.site-footer .footer-translate .gtranslate_wrapper,
.site-footer .footer-translate .gt_switcher,
.site-footer .footer-translate .gt_selected {
    width: 184px;
    max-width: 100%;
    box-sizing: border-box;
}
.site-footer .footer-translate .gt_selected > a {
    box-sizing: border-box;
    width: 184px;
    max-width: 100%;
    height: 44px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #a4b4be;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 0; /* hide the selected language text, not the dropdown functionality */
    white-space: nowrap;
}
.site-footer .footer-translate .gt_selected > a img { display: none; }
.site-footer .footer-translate .gt_selected > a::before {
    content: "";
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2028%2028%22%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%2211.5%22%20fill%3D%22none%22%20stroke%3D%22%23c20000%22%20stroke-width%3D%222.7%22%2F%3E%3Cellipse%20cx%3D%2214%22%20cy%3D%2214%22%20rx%3D%225.2%22%20ry%3D%2211.5%22%20fill%3D%22none%22%20stroke%3D%22%23c20000%22%20stroke-width%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M2.5%2014h23%22%20fill%3D%22none%22%20stroke%3D%22%23c20000%22%20stroke-width%3D%222.7%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
.site-footer .footer-translate .gt_selected > a::after {
    content: "Translate";
    color: #111;
    font-size: 15px;
    line-height: 1;
    margin-right: auto;
}
/* Chevron is a background image, so the link remains a single click target. */
.site-footer .footer-translate .gt_selected > a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='M2 2l7 7 7-7' stroke='%23111' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 15px 10px !important;
    background-position: right 13px center !important;
}

.site-footer .footer-social {
    box-sizing: border-box;
    width: 184px;
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}
.site-footer .footer-social-link {
    flex: 0 0 36px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
}
.site-footer .footer-social-link i,
.site-footer .footer-social-link svg {
    color: #111;
    fill: currentColor;
    font-size: 28px;
}
.site-footer .footer-social-link:hover,
.site-footer .footer-social-link:focus {
    background: transparent;
}
.site-footer .footer-social-link:hover i,
.site-footer .footer-social-link:hover svg,
.site-footer .footer-social-link:focus i,
.site-footer .footer-social-link:focus svg {
    color: #c20000 !important;
    fill: currentColor;
}

/* Legal links and copyright are on two left-aligned lines, not a black bar. */
.site-footer .footer-bottom-wrapper {
    background: transparent;
    margin-top: 84px;
}
.site-footer .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding: 0;
    text-align: left;
    color: #111;
    font-family: inherit;
}
.site-footer .footer-nav--utility .footer-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px 70px;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
.site-footer .footer-nav--utility .footer-menu li { margin: 0; padding: 0; }
.site-footer .footer-nav--utility .footer-menu a {
    color: #111;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    text-decoration: none;
}
.site-footer .footer-copyright,
.site-footer .footer-copyright a {
    color: #111;
    font-family: inherit;
    font-size: 13px;
    line-height: 20px;
    font-weight: normal;
    letter-spacing: 0;
    opacity: 1;
}
.site-footer .footer-copyright a { text-decoration: none; }
.site-footer .footer-nav--utility .footer-menu a:hover,
.site-footer .footer-copyright a:hover {
    color: #c20000 !important;
}

@media (max-width: 1040px) {
    .site-footer .footer-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 32px;
        row-gap: 32px;
    }
    .site-footer .footer-address--primary { grid-column: 1; }
    .site-footer .footer-address--secondary { grid-column: 2; }
    .site-footer .footer-utilities {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
    }
    .site-footer .footer-utilities { padding-right: 0; }
    .site-footer .footer-bottom-wrapper { margin-top: 65px; }
    .site-footer .footer-inner::before { display: none; }
}
@media (max-width: 740px) {
    .site-footer .footer-inner { padding: 46px 0 30px; }
    .site-footer .footer-inner > .container { width: calc(100% - 36px); }
    .site-footer .footer-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        text-align: left;
    }
    .site-footer .footer-address--primary,
    .site-footer .footer-address--secondary,
    .site-footer .footer-utilities { grid-column: 1; }
    .site-footer .footer-address h2 { font-size: 21px; line-height: 27px; }
    .site-footer .footer-utilities {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }
    .site-footer .footer-bottom-wrapper { margin-top: 52px; }
    .site-footer .footer-bottom { align-items: flex-start; gap: 18px; text-align: left; }
    .site-footer .footer-nav--utility .footer-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px 22px;
    }
}




/* GTranslate footer dropdown fix */

.site-footer .footer-translate .gt_switcher {
    width: 184px !important;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff !important;
    border: 1px solid #aab8bf;
}

.site-footer .footer-translate .gt_selected {
    width: 100% !important;
    box-sizing: border-box;
    background: none !important;
    border: 0 !important;
}

.site-footer .footer-translate .gt_selected > a {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: 42px;
    padding: 8px 12px !important;
    box-sizing: border-box;

    color: #111 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-indent: 0 !important;
    white-space: nowrap;

    background: none !important;
    border: 0 !important;
    text-decoration: none !important;
}

.site-footer .footer-translate .gt_selected > a img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin: 0 8px 0 0 !important;
}

/* Remove any additional arrow on the wrapper */
.site-footer .footer-translate .gt_selected::after,
.site-footer .footer-translate .gt_selected > a::before {
    content: none !important;
}

/* Use exactly one dropdown arrow */
.site-footer .footer-translate .gt_selected > a::after {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: 0 0 8px;

    width: 8px !important;
    height: 8px !important;
    margin: -4px 3px 0 auto !important;

    border: 0 !important;
    border-right: 2px solid #111 !important;
    border-bottom: 2px solid #111 !important;
    border-radius: 0 !important;

    background: none !important;
    box-shadow: none !important;
    transform: rotate(45deg) !important;
}

.site-footer .footer-translate .gt_selected > a img,
.site-footer .footer-translate .gt_option > a img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Space between flag and selected language */
.site-footer .footer-translate .gt_selected > a {
    gap: 9px !important;
}

/* Remove gray backgrounds and inset appearance */
.site-footer .footer-translate .gt_option {
    box-sizing: border-box;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #aab8bf !important;
    border-top: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
}

/* Improve individual language options */
.site-footer .footer-translate .gt_option > a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 12px !important;
    margin: 0 !important;

    background: #fff !important;
    background-image: none !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-indent: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: normal !important;
}

/* Subtle hover and selected language highlight */
.site-footer .footer-translate .gt_option > a:hover,
.site-footer .footer-translate .gt_option > a:focus,
.site-footer .footer-translate .gt_option > a.gt_current {
    background: #f3f5f6 !important;
    color: #111 !important;
}

/* Allow a taller dropdown when expanded */
.site-footer .footer-translate
.gt_selected:has(> a.open) + .gt_option {
    height: min(320px, 55vh) !important;
    max-height: min(320px, 55vh) !important;
    overflow-y: auto !important;
    border: none !important;
}
