/* ==========================================
   A2Z PRODUCTION - STANDALONE FOOTER & BACK TO TOP STYLES
   WCAG AAA Compliant (21:1 Contrast)
   ========================================== */

.a2z-footer-wrapper,
footer.a2z-footer-wrapper,
.elementor-widget-container.a2z-footer-wrapper {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-family: inherit;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clear: both;
}

.a2z-footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.a2z-footer-top {
    padding: 60px 0 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.a2z-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.a2z-footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.a2z-footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
}

.a2z-footer-desc {
    color: #cccccc !important;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.a2z-section-heading,
.a2z-footer-col h3,
.a2z-footer-col h4,
.a2z-footer-heading {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.a2z-footer-nav,
.a2z-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.a2z-footer-nav a,
.a2z-footer-links a {
    color: #e0e0e0 !important;
    text-decoration: none !important;
    font-size: 15px;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.a2z-footer-nav a:hover,
.a2z-footer-links a:hover,
.a2z-footer-nav a:focus,
.a2z-footer-links a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.a2z-footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    box-sizing: border-box;
    width: 100%;
}

.a2z-copyright-clean,
.a2z-footer-wrapper .a2z-copyright-clean {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.a2z-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.a2z-social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.a2z-social-icons a,
.a2z-social-icon-link {
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background: transparent;
}

.a2z-social-icons a:hover,
.a2z-social-icons a:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}

.a2z-social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================
   BACK TO TOP FEATURE - CLEAN BORDERLESS CIRCULAR BUTTON
   ========================================== */

button.back-to-top,
.back-to-top {
    position: fixed !important;
    z-index: 99999 !important;
    bottom: 30px !important;
    right: -80px; /* Hidden by default off-screen */
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-style: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
    border-radius: 50% !important; /* Circular shape */
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 60px !important;
    height: 60px !important;
    cursor: pointer !important;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s ease, opacity 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent !important;
}

button.back-to-top:focus,
button.back-to-top:focus-visible,
button.back-to-top:active,
button.back-to-top:hover,
.back-to-top:focus,
.back-to-top:focus-visible,
.back-to-top:active,
.back-to-top:hover {
    outline: none !important;
    border: 0 !important;
    border-style: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

@media (max-width: 1024px) {
    button.back-to-top,
    .back-to-top {
        bottom: 20px !important;
    }
}

button.back-to-top.active,
.back-to-top.active {
    right: 30px !important;
}

@media (max-width: 1024px) {
    button.back-to-top.active,
    .back-to-top.active {
        right: 20px !important;
    }
}

/* Centered Arrow & Progress Container */
.back-to-top .a2z-back-top-inner {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 50%;
}

/* Icon Styles - Default / On Dark (Pure White) */
.back-to-top .icon-arrow-up {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 2;
    transition: color 0.3s ease, transform 0.3s ease;
    color: #FFFFFF !important;
}

button.back-to-top.is-on-dark .icon-arrow-up,
.back-to-top.is-on-dark .icon-arrow-up {
    color: #FFFFFF !important;
}

button.back-to-top.is-on-dark .icon-arrow-up svg path,
.back-to-top.is-on-dark .icon-arrow-up svg path {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

button.back-to-top.is-on-dark .a2z-progress-track,
.back-to-top.is-on-dark .a2z-progress-track {
    stroke: rgba(255, 255, 255, 0.3) !important;
}

button.back-to-top.is-on-dark .a2z-progress-circle,
.back-to-top.is-on-dark .a2z-progress-circle {
    stroke: #FFFFFF !important;
}

/* Universal Light Theme Adaptive Contrast (Pure Black on White BG) */
button.back-to-top.is-on-light,
.back-to-top.is-on-light {
    color: #000000 !important;
}

button.back-to-top.is-on-light .icon-arrow-up,
.back-to-top.is-on-light .icon-arrow-up {
    color: #000000 !important;
}

button.back-to-top.is-on-light .icon-arrow-up svg,
.back-to-top.is-on-light .icon-arrow-up svg {
    color: #000000 !important;
    stroke: #000000 !important;
}

button.back-to-top.is-on-light .icon-arrow-up svg path,
.back-to-top.is-on-light .icon-arrow-up svg path {
    stroke: #000000 !important;
    color: #000000 !important;
}

button.back-to-top.is-on-light .a2z-progress-track,
.back-to-top.is-on-light .a2z-progress-track {
    stroke: rgba(0, 0, 0, 0.25) !important;
}

button.back-to-top.is-on-light .a2z-progress-circle,
.back-to-top.is-on-light .a2z-progress-circle {
    stroke: #000000 !important;
}

.back-to-top .icon-arrow-up svg {
    width: 100%;
    height: 100%;
    stroke: currentColor !important;
}

.back-to-top.scroll-position-style:hover {
    transform: translateY(-5px);
}

/* SVG Circular Progress Track */
.back-to-top.scroll-position-style .a2z-scroll-svg {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
    top: 0;
    left: 0;
}

/* Progress Circle Base Track */
.back-to-top.scroll-position-style .a2z-progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

/* Moving Progress Circle */
.back-to-top.scroll-position-style .a2z-progress-circle {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.2s linear, stroke 0.3s ease;
}

/* Responsive Handling */
@media (max-width: 767px) {
    .a2z-footer-container {
        padding: 0 20px !important;
    }

    .a2z-footer-main {
        flex-direction: column-reverse !important;
        gap: 20px !important;
        text-align: center !important;
    }

    .a2z-actions-wrapper {
        flex-direction: column !important;
        gap: 16px !important;
    }
}

/* Compact footer: preserve the existing content while reducing visual weight. */
.a2z-footer-main {
    padding: 8px 0 !important;
    gap: 12px !important;
    min-height: 0 !important;
}

.a2z-copyright-clean {
    font-size: 11px !important;
    font-weight: 400 !important;
}

.a2z-actions-wrapper {
    gap: 24px !important;
    flex-wrap: nowrap !important;
}

.a2z-section-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

.a2z-section-heading {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Keep the Instagram label readable as one line in the upper footer block. */
.elementor-element-2da9da9 {
    flex-wrap: nowrap !important;
}

.elementor-element-2da9da9 .elementor-element-3ab1f36,
.elementor-element-2da9da9 .elementor-element-3ab1f36 .elementor-heading-title {
    width: max-content !important;
    min-width: max-content !important;
    white-space: nowrap !important;
}

/* Home-page statistics: prevent the four counters from clipping on smaller screens. */
@media (max-width: 1100px) {
    .elementor-element-2aa3978d {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-inline: 12px !important;
        overflow: hidden !important;
    }

    .elementor-element-2aa3978d > .elementor-element {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 600px) {
    .elementor-element-2aa3978d {
        gap: 18px 10px !important;
    }

    .elementor-element-2aa3978d .elementor-counter-number {
        font-size: clamp(32px, 10vw, 48px) !important;
    }

    .elementor-element-2aa3978d .elementor-counter-title {
        font-size: 13px !important;
        white-space: normal !important;
    }
}

.a2z-social-icons {
    gap: 5px !important;
}

.a2z-social-icons a,
.a2z-social-icon-link {
    width: 36px !important;
    height: 36px !important;
}

.a2z-social-icons svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 767px) {
    .a2z-footer-container {
        padding: 0 16px !important;
    }

    .a2z-footer-main {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: space-between;
        gap: 8px !important;
        text-align: left !important;
    }

    .a2z-copyright-clean {
        text-align: center !important;
    }

    .a2z-actions-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .a2z-social-icons a,
    .a2z-social-icon-link {
        width: 34px !important;
        height: 34px !important;
    }
}
