﻿@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

.dtampe-footer {
    position: relative;
    width: 100%;
    color: #fff;
    padding: 80px 0 20px;
    overflow: hidden;
    font-family: 'Inter', 'IBM Plex Sans', sans-serif !important;
    min-height: auto;
    display: flex;
    align-items: flex-end;
    z-index: 10;
    touch-action: pan-y;
}

.dtampe-footer address,
.dtampe-footer address *,
#addressPopup address,
#addressPopup address *,
.address-container,
.address-container *,
address,
address * {
    font-style: normal !important;
}

/* Noise Overlay */
.dtampe-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
    opacity: 0.15;
    pointer-events: none;
    z-index: 2;
}

/* Subtle Gradient */
.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(169, 30, 34, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}



.footer-inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0px;

    width: 100%;
    /* max-width: 1750px; */
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* Enforce robust typography overrides */
.dtampe-footer .footer-hdn {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.54px;
    display: block;
    font-family: 'Inter', 'IBM Plex Sans', sans-serif;
}

.dtampe-footer .section-content {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #8c8c8c;
    letter-spacing: 0.54px;
    font-family: 'Inter', 'IBM Plex Sans', sans-serif;
}

.footer-top-wrap {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    z-index: 3;
    position: relative;
    width: 100%;
}

.footer-left {
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-home-link {
    color: #fff;
    font-family: "Tanker", sans-serif;
    font-size: 128px;
    line-height: 1;
    display: block;
    text-decoration: none;
}

.certi-list-wrap {
    display: flex;
    gap: 40px;
}

.certi-img {
    width: fit-content;
    min-width: 60px;
}

.certi-img img {
    object-fit: contain;
}

.footer-right {
    flex: 1;
    margin-right: 30px;
}

.f-row {
    display: flex;
    margin-left: -15px;
    margin-right: -15px;
    flex-wrap: wrap;
}

.w30,
.w70 {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .w30 {
        flex: var(--sitemap-flex, 0 0 30%);
        max-width: var(--sitemap-max-width, 30%);
    }

    .w70 {
        flex: var(--locations-flex, 1 1 0%);
        max-width: var(--locations-max-width, none);
    }
}

.w100 {
    width: 100%;
    flex: var(--social-flex, 0 0 100%);
    max-width: var(--social-max-width, 100%);
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    margin-top: 30px;
}

.footer-link-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    height: 100%;
    padding: 28px;
    box-sizing: border-box;
}

.footer-link-box .footer-link-box {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}

/* Locations link styles to ensure icons show */
.location-box a {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 46px;
    position: relative;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

.location-box a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: url("../images/footer-location-icon.svg") no-repeat center;
    background-size: contain;
}

.location-box a:hover {
    color: #ee163d;
}

/* Social icons inside follow us widget */
.social-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.social-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.social-wrap a {
    /* width: 48px;
    height: 48px; */
    display: block;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    transition: background 0.4s ease;
}

.social-wrap a:hover {
    background: rgba(223, 31, 38, 0.4);
}

.social-wrap a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-link-box address {
    margin: 0px;
}

/* Address Popup Styling */
#addressPopup .comm-popup-container {
    backdrop-filter: blur(2px);
    width: 100%;
    min-height: 100vh;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#addressPopup .comm-popup-box {
    position: relative;
    border-radius: 10px;
    background: #121313;
    padding: 3em;
    pointer-events: all;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#addressPopup .comm-popup-close {
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#addressPopup .comm-popup-hdn {
    color: #fff;
    font-family: "Tanker", sans-serif;
    font-size: 48px;
    line-height: 1;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    word-break: break-word;
    order: 1;
}

#addressPopup .popup-float-btn-1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

#addressPopup .comm-popup-close {
    order: 2;
}

#addressPopup .comm-popup-cont {
    padding: 0;
    background: transparent;
}

.address-popup-box {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: #121313;
    padding: 30px;
    border-radius: 15px;
}

.address-cont p {
    color: #fff;
    font-family: "Tanker", sans-serif;
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: left;
}

.address-map-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.address-map-wrapper {
    flex: 0 0 50%;
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    background: #2e343a;
}

.address-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.address-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

#addressPopup .put-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    gap: 15px;
}

#addressPopup ul.put-link-list {
    list-style: none;
    background: #232424;
    border-radius: 40px;
    margin: 0px !important;
    padding: 5px 25px 5px 5px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

/* Original global rules restored */
ul.put-link-list li {
    display: inline-flex;
    padding: 0;
    align-content: center;
    align-items: center;
    color: white;
    vertical-align: middle;
}

.put-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2e343a;
}

.put-icon img {
    max-width: 100%;
}

/* .put-link-wrap {
    padding-left: 10px;
} */

.put-link-wrap a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.put-link-wrap a:hover {
    color: #ee163d;
}

/* Specific overrides for Address Popup to match new design */
#addressPopup ul.put-link-list li {
    margin: 0px;
}

/* #addressPopup .put-icon {
    background: #e22b2b;
} */

#addressPopup .put-icon svg {
    color: #fff;
}

#addressPopup .put-link-wrap {
    padding-left: 0;
}

#addressPopup .put-link-wrap a {
    white-space: nowrap;
}

/* Flex Grid Classes */
.f-col {
    box-sizing: border-box;
}

.f-2 .f-col {
    width: 50%;
    flex: 0 0 50%;
    box-sizing: border-box;
}

.f-3 .f-col {
    width: 33.33333333%;
    flex: 0 0 33.33333333%;
    box-sizing: border-box;
}

@media (max-width: 1600px) {
    .f-1600-2 .f-col {
        width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 640px) {
    .f-640-1 .f-col {
        width: 100%;
        flex: 0 0 100%;
    }
}

/* Responsive Layout Rules */
@media (max-width: 1200px) {
    .footer-top-wrap {
        gap: 30px;
        flex-direction: column;
    }

    .footer-left {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-home-link {
        font-size: 96px !important;
        margin-bottom: 30px !important;
    }

    .certi-list-wrap {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .w-768-100 {
        width: 100% !important;
        margin-bottom: 20px;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .w100 {
        margin-top: 10px;
    }

    .social-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .footer-home-link {
        font-size: 80px !important;
    }
}


.section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 25px;
    display: block;
}



.dtampe-footer .section-content a {
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.3s !important;
    margin-bottom: 0px !important;
}

.dtampe-footer .section-content a:hover {
    opacity: 0.7 !important;
}



.footer-section.align-right {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px;
}

.footer-section.align-right .section-title {
    margin-bottom: 0 !important;
    text-align: left;
}

.footer-section.align-right .section-content {
    text-align: right;
    flex-grow: 1;
}

.dtampe-footer .footer-link-box.social-box {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.dtampe-footer .social-box .footer-hdn {
    margin-bottom: 0 !important;
}



.section-content img {
    max-width: 100%;
}

.footer-widget-5 {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Ensure links/icons wrap correctly */
.section-content p,
.section-content div {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.section-content li {
    margin-bottom: 10px;
}

/* Certificate / Logo Hover Effect */
.certi-img {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    line-height: 0;
}

.certi-img img {
    display: block;
    max-width: 100%;
    transition: opacity 0.3s ease-in-out;
}

.certi-img .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.certi-img.has-hover:hover .main-img {
    opacity: 0;
}

.certi-img.has-hover:hover .hover-img {
    opacity: 1;
}

.section-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.section-title a:hover {
    opacity: 0.7;
}

/* 2-Column layout helper for links */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Sitemap Grid Styling */
.sitemap-box .section-content,
.sitemap-box .section-content p,
.sitemap-box .section-content ul,
.sitemap-box .f-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 35px;
    margin-left: 0;
    margin-right: 0;
}

.sitemap-box .f-col {
    width: auto;
    flex: none;
    padding: 0;
}

.sitemap-box a,
.sitemap-box .section-content a,
.sitemap-box .f-col a {
    color: #ffffff;
}

.sitemap-box .section-content br {
    display: none;
}

/* Locations Grid Styling */
.location-box .section-content,
.location-box .section-content p,
.location-box .section-content ul,
.location-box .f-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
}

.location-box .section-content br {
    display: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: 100%;
    flex: 0 0 100%;
    position: relative;
    z-index: 6;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left-copyright {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-right-menu {
    display: inline-flex;
    gap: 24px;
    align-items: center;
    padding: 14px 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-sizing: border-box;
}

.footer-right-menu a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.footer-right-menu a:hover {
    color: #fff !important;
}

.footer-right-menu a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -14px;
    color: rgba(255, 255, 255, 0.2);
}

div#addressPopup {
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Prevent horizontal jump and scrollbar flickering during all popup states */
html.mfp-open,
body.mfp-open,
html.mfp-ready,
body.mfp-ready,
html.mfp-removing,
body.mfp-removing {
    overflow: hidden;
    margin-right: 0;
}

.dtampe-footer {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .footer-inner {
        padding: 0 40px;
        max-width: 100%;
    }

    .footer-section {
        padding: 0px;
    }

    .dtampe-footer .footer-link-box {
        padding: 25px;
    }
}

@media (max-width: 1024px) {
    .footer-row {
        gap: 20px;
    }

    .footer-section {
        flex: 0 0 calc(50% - 10px);
        margin-left: 0;
        padding: 0px;
    }

    .footer-section[style*="100%"] {
        flex: 0 0 100%;
    }

    .footer-widget-1 {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .dtampe-footer .footer-link-box {
        padding: 20px;
    }

    .grid-3-col {
        grid-template-columns: 1fr 1fr;
    }

    .location-box .section-content,
    .location-box .section-content p,
    .location-box .section-content ul,
    .location-box .f-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .w30,
    .w70,
    .w-768-100 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .dtampe-footer {
        padding: 40px 0 40px;
    }

    .section-content h3.footer-hdn {
        width: 100%;
    }

    .footer-section {
        flex: 0 0 100%;
        margin-left: 0;
        order: 1;
        display: flex;
        padding: 0px;
        margin-bottom: 15px;
    }

    .dtampe-footer .footer-link-box {
        padding: 20px;
    }

    .grid-2-col,
    .grid-3-col {
        grid-template-columns: 1fr;
    }

    .sitemap-box .section-content,
    .sitemap-box .section-content p,
    .sitemap-box .section-content ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-box .section-content,
    .location-box .section-content p,
    .location-box .section-content ul,
    .location-box .f-row {
        grid-template-columns: 1fr;
    }


    .footer-section.align-right {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-section.align-right .section-content {
        text-align: left;
        width: 100%;
    }

    .dtampe-footer .footer-link-box.social-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .social-wrap {
        gap: 16px;
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        text-align: center;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin-top: 20px;
    }

    .footer-left-copyright,
    .footer-right-menu {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        flex: 0 0 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 15px;
        margin-right: 0;
    }

    .footer-inner {
        padding: 0 25px;
    }

    /* Address Popup Mobile Fixes */
    #addressPopup .comm-popup-box {
        padding: 2em 1.5em;
    }

    #addressPopup .comm-popup-close {
        right: 1.2em;
        top: 1.2em;
        width: 36px;
        height: 36px;
    }

    #addressPopup .comm-popup-hdn {
        font-size: 32px;
        padding-right: 45px;
    }

    .address-cont p {
        font-size: 24px;
    }

    .address-map-layout {
        flex-direction: column;
    }

    .address-map-wrapper {
        height: 250px;
        width: 100%;
    }
}