/**
 * ==========================================
 * COMTECHZONE — PREMIUM FOOTER DESIGN
 * Version: 1.1.0
 *
 * Compatible with:
 * - Existing footer.php
 * - WordPress Customizer
 * - Newsletter Settings
 * - Footer Navigation
 * - Popular Categories
 * - Social Links
 * - Back to Top Button
 * ==========================================
 */


/* ==========================================
   01. FOOTER VARIABLES & BASE
========================================== */

.ctz-site-footer.ctz-footer-pro {

    --ctz-footer-bg: #080f1f;
    --ctz-footer-bg-soft: #101c33;

    --ctz-footer-accent: color-mix(
        in srgb,
        var(--ctz-primary, #2563eb) 55%,
        #ffffff
    );

    --ctz-footer-action: var(
        --ctz-primary,
        #2563eb
    );

    --ctz-footer-heading: #ffffff;
    --ctz-footer-text: #cbd5e1;
    --ctz-footer-muted-text: #94a3b8;

    --ctz-footer-border:
        rgba(255, 255, 255, 0.10);

    --ctz-footer-radius: 16px;

    position: relative;

    margin: 0;
    padding: 0;

    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(37, 99, 235, 0.11),
            transparent 35%
        ),
        linear-gradient(
            155deg,
            var(--ctz-footer-bg-soft),
            var(--ctz-footer-bg) 65%
        );

    color: var(--ctz-footer-text);

    font-family: var(
        --ctz-font-family,
        inherit
    );

    font-size: 14px;
    line-height: 1.75;
    text-align: left;

    overflow: hidden;
}


/* Box Sizing */

.ctz-footer-pro *,
.ctz-footer-pro *::before,
.ctz-footer-pro *::after,
.ctz-back-to-top,
.ctz-back-to-top * {
    box-sizing: border-box;
}


/* Footer Container */

.ctz-footer-pro .ctz-footer-container {

    width: calc(100% - 40px);

    max-width: var(
        --ctz-container,
        1200px
    );

    margin-inline: auto;
}


/* Footer Links */

.ctz-footer-pro a {

    color: inherit;

    text-decoration: none;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.ctz-footer-pro a:hover {
    color: var(--ctz-footer-accent);
    text-decoration: none;
}


/* Accessibility */

.ctz-footer-pro a:focus-visible,
.ctz-back-to-top:focus-visible {

    outline: 3px solid var(
        --ctz-footer-accent,
        #93c5fd
    );

    outline-offset: 4px;
}


/* ==========================================
   02. PREMIUM NEWSLETTER SECTION
========================================== */

.ctz-footer-pro .ctz-footer-newsletter {

    position: relative;

    padding: 46px 0;

    border-bottom:
        1px solid var(--ctz-footer-border);
}


/* Newsletter Inner Banner */

.ctz-footer-pro .ctz-footer-newsletter-inner {

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 34px 40px;

    background:
        radial-gradient(
            circle at 95% 15%,
            rgba(96, 165, 250, 0.18),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            rgba(37, 99, 235, 0.16),
            rgba(255, 255, 255, 0.035)
        );

    border:
        1px solid rgba(147, 197, 253, 0.19);

    border-radius: 20px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.10);

    overflow: hidden;
}


/* Decorative Glow */

.ctz-footer-pro
.ctz-footer-newsletter-inner::before {

    content: "";

    position: absolute;

    right: -100px;
    top: -150px;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(96, 165, 250, 0.12),
            transparent 70%
        );

    pointer-events: none;
}


/* Newsletter Text */

.ctz-footer-pro .ctz-footer-newsletter-copy {

    position: relative;

    flex: 1;
    min-width: 0;
    max-width: 750px;
}


/* Small Heading */

.ctz-footer-pro .ctz-footer-eyebrow {

    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: var(--ctz-footer-accent);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
    line-height: 1.5;

    text-transform: uppercase;
}


/* Accent Dot */

.ctz-footer-pro .ctz-footer-eyebrow::before {

    content: "";

    width: 7px;
    height: 7px;

    background: var(--ctz-footer-accent);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(96, 165, 250, 0.13);
}


/* Newsletter Title */

.ctz-footer-pro .ctz-footer-newsletter h2 {

    margin: 0 0 11px;

    color: #ffffff;

    font-size: clamp(23px, 2.7vw, 33px);
    font-weight: 800;

    line-height: 1.25;
    letter-spacing: -0.7px;
}


/* Newsletter Description */

.ctz-footer-pro .ctz-footer-newsletter p {

    max-width: 620px;

    margin: 0;

    color: #b9c8dd;

    font-size: 14px;
    line-height: 1.8;
}


/* Subscribe Button */

.ctz-footer-pro .ctz-footer-subscribe {

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    flex: 0 0 auto;

    min-height: 52px;
    padding: 13px 24px;

    background: var(--ctz-footer-action);

    border:
        1px solid var(--ctz-footer-action);

    border-radius: 11px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;

    box-shadow:
        0 10px 26px rgba(37, 99, 235, 0.20);
}


/* Subscribe Hover */

.ctz-footer-pro .ctz-footer-subscribe:hover {

    transform: translateY(-3px);

    background: #ffffff;
    border-color: #ffffff;

    color: #0f172a;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.15);
}


/* Subscribe Arrow */

.ctz-footer-pro .ctz-footer-subscribe span {

    font-size: 20px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.ctz-footer-pro
.ctz-footer-subscribe:hover span {

    transform: translateX(4px);
}


/* ==========================================
   03. MAIN FOOTER
========================================== */

.ctz-footer-pro .ctz-footer-main {

    position: relative;

    padding: 72px 0 0;
}


/* Footer Grid */

.ctz-footer-pro .ctz-footer-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(min(100%, 220px), 1fr)
        );

    gap: 36px;

    padding-bottom: 62px;
}


/* Footer Columns */

.ctz-footer-pro .ctz-footer-grid > * {

    min-width: 0;
}


/* ==========================================
   04. BRAND & LOGO
========================================== */

.ctz-footer-pro .ctz-footer-brand {

    position: relative;

    min-width: 0;
}


/* Logo Container */

.ctz-footer-pro .ctz-footer-logo {

    margin-bottom: 23px;
}


/* WordPress Custom Logo */

.ctz-footer-pro
.ctz-footer-logo .custom-logo-link {

    display: inline-flex;
    align-items: center;

    max-width: 100%;
}


/* Logo Image */

.ctz-footer-pro
.ctz-footer-logo .custom-logo {

    display: block;

    width: auto;
    max-width: 220px;

    height: auto;
    max-height: 75px;

    object-fit: contain;
}


/* Website Name */

.ctz-footer-pro .ctz-footer-site-name {

    display: inline-block;

    margin-bottom: 21px;

    color: #ffffff;

    font-size: 27px;
    font-weight: 850;

    line-height: 1.3;
    letter-spacing: -0.8px;

    overflow-wrap: anywhere;
}

.ctz-footer-pro .ctz-footer-site-name:hover {

    color: var(--ctz-footer-accent);
}


/* About Description */

.ctz-footer-pro .ctz-footer-about {

    max-width: 330px;

    margin: 0;

    color: #b8c6da;

    font-size: 14px;
    line-height: 1.95;
}


/* Brand Accent */

.ctz-footer-pro .ctz-footer-brand::after {

    content: "";

    display: block;

    width: 48px;
    height: 3px;

    margin-top: 24px;

    background: linear-gradient(
        90deg,
        var(--ctz-footer-action),
        var(--ctz-footer-accent)
    );

    border-radius: 5px;
}


/* ==========================================
   05. FOOTER COLUMN HEADINGS
========================================== */

.ctz-footer-pro .ctz-footer-heading {

    position: relative;

    margin: 4px 0 27px;
    padding-bottom: 15px;

    color: var(--ctz-footer-heading);

    font-size: 16px;
    font-weight: 800;

    line-height: 1.4;
    letter-spacing: -0.2px;
}


/* Heading Divider */

.ctz-footer-pro .ctz-footer-heading::before {

    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background: var(--ctz-footer-border);
}


/* Heading Accent Line */

.ctz-footer-pro .ctz-footer-heading::after {

    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 38px;
    height: 2px;

    background: var(--ctz-footer-accent);

    border-radius: 4px;
}


/* ==========================================
   06. QUICK LINKS & POPULAR TOPICS
========================================== */

.ctz-footer-pro .ctz-footer-links {

    display: grid;

    gap: 14px;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* List Item */

.ctz-footer-pro .ctz-footer-links li {

    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}


/* Link */

.ctz-footer-pro .ctz-footer-links a {

    position: relative;

    display: inline-block;

    padding-left: 18px;

    color: #b8c6da;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* Small Link Arrow */

.ctz-footer-pro .ctz-footer-links a::before {

    content: "›";

    position: absolute;

    top: 0;
    left: 0;

    color: #7184a0;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* Link Hover */

.ctz-footer-pro .ctz-footer-links a:hover,
.ctz-footer-pro
.ctz-footer-links .current-menu-item > a {

    color: var(--ctz-footer-accent);

    transform: translateX(4px);
}

.ctz-footer-pro
.ctz-footer-links a:hover::before,
.ctz-footer-pro
.ctz-footer-links .current-menu-item > a::before {

    color: var(--ctz-footer-accent);
}


/* ==========================================
   07. CONNECT WITH US
========================================== */

.ctz-footer-pro .ctz-footer-muted {

    margin: 0 0 20px;

    color: #b8c6da;

    font-size: 14px;
    line-height: 1.85;
}


/* Contact Email */

.ctz-footer-pro .ctz-footer-email {

    display: inline-flex;
    align-items: center;

    max-width: 100%;

    gap: 9px;

    margin-bottom: 23px;
    padding: 10px 13px;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 9px;

    color: #e2e8f0;

    font-size: 13px;
    font-weight: 600;

    overflow-wrap: anywhere;
}


/* Email Indicator */

.ctz-footer-pro .ctz-footer-email::before {

    content: "@";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 25px;
    height: 25px;

    background:
        rgba(96, 165, 250, 0.14);

    border-radius: 6px;

    color: var(--ctz-footer-accent);

    font-size: 15px;
    font-weight: 800;
}


/* Email Hover */

.ctz-footer-pro .ctz-footer-email:hover {

    background:
        rgba(96, 165, 250, 0.10);

    border-color:
        rgba(147, 197, 253, 0.28);

    color: #ffffff;
}


/* ==========================================
   08. PREMIUM SOCIAL LINKS
========================================== */

.ctz-footer-pro .ctz-footer-socials {

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


/* Social Button */

.ctz-footer-pro .ctz-footer-socials a {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 40px;
    padding: 8px 12px;

    background:
        rgba(255, 255, 255, 0.045);

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 10px;

    color: #e2e8f0;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}


/* Social Icon Badge */

.ctz-footer-pro .ctz-footer-socials a::before {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 23px;
    height: 23px;

    background:
        rgba(255, 255, 255, 0.09);

    border-radius: 6px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}


/* Facebook */

.ctz-footer-pro
.ctz-footer-socials a[aria-label="Facebook"]::before {

    content: "f";

    background: #1877f2;
}


/* Instagram */

.ctz-footer-pro
.ctz-footer-socials a[aria-label="Instagram"]::before {

    content: "◎";

    background: linear-gradient(
        135deg,
        #f59e0b,
        #e1306c,
        #833ab4
    );
}


/* YouTube */

.ctz-footer-pro
.ctz-footer-socials a[aria-label="YouTube"]::before {

    content: "▶";

    background: #ff0033;

    font-size: 10px;
}


/* LinkedIn */

.ctz-footer-pro
.ctz-footer-socials a[aria-label="LinkedIn"]::before {

    content: "in";

    background: #0a66c2;

    font-size: 10px;
}


/* Social Hover */

.ctz-footer-pro .ctz-footer-socials a:hover {

    transform: translateY(-3px);

    background:
        rgba(96, 165, 250, 0.11);

    border-color:
        rgba(147, 197, 253, 0.35);

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12);
}


/* ==========================================
   09. COPYRIGHT SECTION
========================================== */

.ctz-footer-pro .ctz-footer-bottom {

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 14px 25px;

    padding: 26px 0;

    border-top:
        1px solid var(--ctz-footer-border);
}


/* Copyright Text */

.ctz-footer-pro .ctz-footer-bottom p {

    margin: 0;

    color: #94a3b8;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.7;
}


/* Website Link */

.ctz-footer-pro .ctz-footer-bottom > a {

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #cbd5e1;

    font-size: 13px;
    font-weight: 700;
}


/* Footer Brand Indicator */

.ctz-footer-pro .ctz-footer-bottom > a::before {

    content: "";

    width: 7px;
    height: 7px;

    background: var(--ctz-footer-accent);

    border-radius: 50%;
}


/* Copyright Link Hover */

.ctz-footer-pro .ctz-footer-bottom > a:hover {

    color: #ffffff;
}


/* ==========================================
   10. BACK TO TOP BUTTON
========================================== */

.ctz-back-to-top {

    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 900;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    padding: 0;

    background: var(
        --ctz-primary,
        #2563eb
    );

    border:
        1px solid rgba(255, 255, 255, 0.14);

    border-radius: 13px;

    color: #ffffff;

    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* Preserve WordPress Hidden State */

.ctz-back-to-top[hidden] {

    display: none !important;
}


/* Back to Top Hover */

.ctz-back-to-top:hover {

    transform: translateY(-5px);

    background: color-mix(
        in srgb,
        var(--ctz-primary, #2563eb) 85%,
        #000000
    );

    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.30);
}


/* Back to Top Focus */

.ctz-back-to-top:focus-visible {

    outline: 3px solid #93c5fd;
    outline-offset: 4px;
}


/* ==========================================
   11. TABLET RESPONSIVE
========================================== */

@media (max-width: 1024px) {

    .ctz-footer-pro .ctz-footer-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 45px 35px;
    }

    .ctz-footer-pro
    .ctz-footer-newsletter-inner {

        gap: 25px;
        padding: 30px;
    }

    .ctz-footer-pro .ctz-footer-main {

        padding-top: 60px;
    }
}


/* ==========================================
   12. MOBILE RESPONSIVE
========================================== */

@media (max-width: 767px) {

    .ctz-footer-pro .ctz-footer-newsletter {

        padding: 30px 0;
    }

    .ctz-footer-pro
    .ctz-footer-newsletter-inner {

        align-items: flex-start;
        flex-direction: column;

        gap: 22px;

        padding: 27px 24px;

        border-radius: 16px;
    }

    .ctz-footer-pro .ctz-footer-newsletter h2 {

        font-size: clamp(22px, 5vw, 29px);
    }

    .ctz-footer-pro .ctz-footer-newsletter p {

        font-size: 13px;
    }

    .ctz-footer-pro .ctz-footer-subscribe {

        min-height: 47px;
        padding: 11px 19px;

        font-size: 13px;
    }

    .ctz-footer-pro .ctz-footer-main {

        padding-top: 48px;
    }

    .ctz-footer-pro .ctz-footer-grid {

        gap: 37px 25px;

        padding-bottom: 45px;
    }

    .ctz-footer-pro .ctz-footer-heading {

        margin-bottom: 23px;
    }

    .ctz-footer-pro .ctz-footer-bottom {

        padding: 23px 0;
    }
}


/* ==========================================
   13. SMALL MOBILE
========================================== */

@media (max-width: 540px) {

    .ctz-footer-pro .ctz-footer-container {

        width: calc(100% - 32px);
    }

    .ctz-footer-pro .ctz-footer-grid {

        grid-template-columns: minmax(0, 1fr);

        gap: 35px;

        padding-bottom: 39px;
    }

    .ctz-footer-pro .ctz-footer-brand {

        padding-bottom: 4px;
    }

    .ctz-footer-pro .ctz-footer-about {

        max-width: 100%;
    }

    .ctz-footer-pro .ctz-footer-heading {

        margin-bottom: 20px;
    }

    .ctz-footer-pro .ctz-footer-links {

        gap: 12px;
    }

    .ctz-footer-pro
    .ctz-footer-newsletter-inner {

        padding: 24px 19px;
    }

    .ctz-footer-pro .ctz-footer-subscribe {

        width: 100%;
    }

    .ctz-footer-pro .ctz-footer-bottom {

        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .ctz-footer-pro .ctz-footer-socials {

        gap: 9px;
    }

    .ctz-footer-pro .ctz-footer-socials a {

        min-height: 39px;
        padding: 8px 11px;
    }

    .ctz-back-to-top {

        right: 15px;
        bottom: 15px;

        width: 44px;
        height: 44px;

        border-radius: 11px;
    }
}


/* ==========================================
   14. VERY SMALL MOBILE
========================================== */

@media (max-width: 360px) {

    .ctz-footer-pro .ctz-footer-container {

        width: calc(100% - 24px);
    }

    .ctz-footer-pro
    .ctz-footer-newsletter-inner {

        padding: 22px 16px;
    }

    .ctz-footer-pro .ctz-footer-socials a {

        font-size: 11px;
    }

    .ctz-footer-pro .ctz-footer-site-name {

        font-size: 24px;
    }
}


/* ==========================================
   15. ACCESSIBILITY & REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .ctz-footer-pro a,
    .ctz-footer-pro .ctz-footer-subscribe span,
    .ctz-back-to-top {

        transition: none;
    }

    .ctz-footer-pro a:hover,
    .ctz-back-to-top:hover {

        transform: none;
    }
}