/*=========================================================
    DELIGHT DUCT CARE — FOOTER
=========================================================*/

.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    position: relative;
    background: #16211C;
    color: #FFFFFFAD;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.site-footer .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 50px 24px;
}


/*=========================================================
    TOP: MAP + CONTENT COLUMNS
=========================================================*/

.footer-main {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) 2fr;
    gap: 56px;
    padding: 84px 0 60px;
}


/*---------------------------------------------------------
    LEFT — COVERAGE MAP
---------------------------------------------------------*/

.footer-map {
    position: relative;
    background: #FFFFFF09;
    border: 1px solid #FFFFFF14;
    border-radius: 20px;
    padding: 28px 26px 24px;
}

.footer-map__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #52C06B;
    background: #52C06B1F;
    padding: 6px 13px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.footer-map__badge i {
    font-size: 9px;
}

.footer-map h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: #FFFFFF;
    margin: 0 0 8px;
    line-height: 1.3;
}

.footer-map p {
    font-size: 13px;
    line-height: 1.6;
    color: #FFFFFF80;
    margin: 0 0 18px;
    max-width: 34ch;
}

.footer-map__svg-wrap {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #FFFFFF1F;
}

.footer-map__map {
    height: 200px;
    width: 100%;
    background: #0F1712;
}

.leaflet-container {
    font-family: 'Inter', sans-serif;
    background: #0F1712;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup-content {
    font-size: 12.5px;
    line-height: 1.5;
    color: #16211C;
}

.footer-map__pin span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ECC42E;
    border: 2px solid #16211C;
    box-shadow: 0 0 0 4px #ECC42E33;
}

.footer-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #FFFFFF1A;
}

.footer-map__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #FFFFFF8C;
}

.footer-map__legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #52C06B;
}

.footer-map__legend .dot-home {
    background: #ECC42E;
}

.footer-map__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.footer-map__tags span {
    font-size: 11px;
    color: #FFFFFF8C;
    background: #FFFFFF0C;
    border: 1px solid #FFFFFF1A;
    padding: 5px 11px;
    border-radius: 999px;
}

.footer-map__tags-more {
    color: #ECC42E !important;
    background: #ECC42E1F !important;
    border-color: #ECC42E40 !important;
    font-weight: 600;
}

/* Add this to footer.css — styles the zoom control + required
   OpenStreetMap attribution to match the dark footer instead of
   Leaflet's default light-theme appearance. */

.leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
}
.leaflet-control-zoom a {
    background: #16211C !important;
    color: #fff !important;
    border: 1px solid #FFFFFF1F !important;
}
.leaflet-control-zoom a:hover {
    background: #52C06B !important;
    color: #16211C !important;
}

.leaflet-control-attribution {
    background: rgba(15, 23, 18, 0.75) !important;
    color: #FFFFFF80 !important;
    font-size: 9.5px !important;
    padding: 1px 6px !important;
}
.leaflet-control-attribution a {
    color: #52C06B !important;
}
/*---------------------------------------------------------
    RIGHT — BRAND / CALLBACK / LINKS / CONTACT
---------------------------------------------------------*/

.footer-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.8fr 1fr;
    gap: 32px;
}

.footer-col h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    margin: 0 0 20px;
}


/*---- brand column ----*/

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}

.footer-brand__logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFFFFF0F;
    object-fit: contain;
    padding: 5px;
}

.footer-brand__logo h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16.5px;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.footer-brand__logo span {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #52C06B;
    margin-top: 2px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: #FFFFFF80;
    margin: 0 0 20px;
    max-width: 30ch;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF12;
    color: #FFFFFFBF;
    font-size: 13px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-social a:hover {
    background: #52C06B;
    color: #16211C;
    transform: translateY(-2px);
}


/*---- callback column ----*/

.footer-callback p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #FFFFFF73;
    margin: 0 0 16px;
}
.footer-callback__error{
    color: rgb(224, 31, 31);
}
.footer-callback__field {
    margin-bottom: 12px;
}

.footer-callback__field input {
    width: 100%;
    background: #FFFFFF0F;
    border: 1px solid #FFFFFF1F;
    border-radius: 10px;
    padding: 11px 13px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #FFFFFF;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.footer-callback__field input::placeholder {
    color: #FFFFFF59;
}

.footer-callback__field input:focus {
    outline: none;
    border-color: #52C06B;
    background: #FFFFFF17;
}

.footer-callback__submit {
    position: relative;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #16211C;
    background: #52C06B;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    transition:
        color 0.3s ease,
        transform 0.15s ease;
}

.footer-callback__submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #C79D18,
        #ECC42E
    );
    transform: translateX(-101%);
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}

.footer-callback__submit:hover::before {
    transform: translateX(0);
}

.footer-callback__submit:active {
    transform: scale(0.97);
}

.footer-callback__note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #FFFFFF66;
    margin-top: 10px;
}

.footer-callback__note i {
    color: #52C06B;
    font-size: 10px;
}

.footer-callback__success {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #52C06B;
    margin-top: 10px;
}

.footer-callback__success.is-visible {
    display: flex;
}


/*---- quick links column ----*/

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #FFFFFF8C;
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    color: #ECC42E;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    gap: 10px;
}

.footer-links a:hover::before {
    opacity: 1;
}


/*---- contact column ----*/

.footer-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #FFFFFF8C;
    margin-bottom: 16px;
}

.footer-contact li i {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFFFFF12;
    color: #52C06B;
    font-size: 11px;
    margin-top: 1px;
}

.footer-contact a {
    color: #8FE0A6;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #ECC42E;
}

.footer-contact li strong {
    display: block;
    color: #FFFFFFD9;
    font-weight: 600;
    margin-bottom: 2px;
}


/*=========================================================
    BOTTOM BAR
=========================================================*/

.footer-bottom {
    border-top: 1px solid #FFFFFF14;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 24px;
    font-size: 12px;
    color: #FFFFFF66;
}

.footer-bottom__legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #FFFFFF66;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #52C06B;
}


/*=========================================================
    BACK TO TOP
=========================================================*/

.back-to-top {
    position: fixed;
    right: 50%;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #52C06B;
    color: #16211C;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px #16211C47;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s,
        background 0.2s ease;
    z-index: 900;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ECC42E;
}


/*=========================================================
    RESPONSIVE
=========================================================*/

@media (max-width: 1080px) {

    .footer-content {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }
}

@media (max-width: 860px) {

    .footer-main {
        grid-template-columns: 1fr;
        padding: 64px 0 40px;
        gap: 40px;
    }

    .footer-map__map {
        height: 170px;
    }
}

@media (max-width: 560px) {

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}


/*=========================================================
    ACCESSIBILITY
=========================================================*/

.footer-links a:focus-visible,
.footer-social a:focus-visible,
.footer-callback__submit:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid #52C06B;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .site-footer *,
    .back-to-top {
        transition: none !important;
        animation: none !important;
    }
}