/*
 * AMC Secure — compact tech footer
 * Multi-color accents, fixed logo size, readable typography
 */

body:not(.admin-body) .site-footer.footer-tech {
    position: relative;
    margin-top: 32px;
    overflow: hidden;
    color: #cbd5e1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 6% 0%, rgba(34, 211, 238, 0.14), transparent 32%),
        radial-gradient(circle at 94% 8%, rgba(167, 139, 250, 0.12), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(18, 168, 107, 0.1), transparent 40%),
        linear-gradient(180deg, #0c1424 0%, #08111f 55%, #060d18 100%);
    background-size: 28px 28px, 28px 28px, auto, auto, auto, auto;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

body:not(.admin-body) .site-footer.footer-tech::before {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #12a86b 0%,
        #22d3ee 22%,
        #3b82f6 44%,
        #a78bfa 66%,
        #f59e0b 82%,
        #12a86b 100%
    );
    content: "";
}

body:not(.admin-body) .footer-tech .footer-compact-main,
body:not(.admin-body) .footer-tech .footer-compact-bottom,
body:not(.admin-body) .footer-tech .footer-copyright {
    position: relative;
    z-index: 1;
    width: min(100% - 28px, 1180px) !important;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 14px;
}

body:not(.admin-body) .footer-tech .footer-compact-main {
    display: grid !important;
    grid-template-columns: minmax(200px, 1.05fr) minmax(140px, 0.72fr) minmax(210px, 0.95fr) minmax(220px, 0.88fr) !important;
    gap: 20px !important;
    align-items: start;
    padding-top: 22px !important;
    padding-bottom: 20px !important;
}

/* ── Brand lockup ── */
body:not(.admin-body) .footer-tech .footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

body:not(.admin-body) .footer-tech .footer-brand-text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body:not(.admin-body) .footer-tech .footer-brand-text strong {
    color: #f8fafc;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

body:not(.admin-body) .footer-tech .footer-tech-tag {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    background: linear-gradient(90deg, #5eead4, #60a5fa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body:not(.admin-body) .footer-tech .footer-brand-copy {
    margin: 0;
    max-width: 300px;
    color: #94a3b8;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

body:not(.admin-body) .footer-tech .footer-compact-brand {
    display: grid;
    gap: 10px;
}

/* ── Column headings ── */
body:not(.admin-body) .footer-tech .footer-col-title,
body:not(.admin-body) .footer-tech h2.footer-col-title {
    margin: 0 0 10px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #f1f5f9 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

body:not(.admin-body) .footer-tech .footer-col--links .footer-col-title {
    color: #7dd3fc !important;
}

body:not(.admin-body) .footer-tech .footer-col--contact .footer-col-title {
    color: #6ee7b7 !important;
}

body:not(.admin-body) .footer-tech .footer-col--newsletter .footer-col-title {
    color: #c4b5fd !important;
}

body:not(.admin-body) .footer-tech .footer-col {
    display: grid;
    align-content: start;
    gap: 6px;
}

/* ── Quick links (2-col compact) ── */
body:not(.admin-body) .footer-tech .footer-quick-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    align-content: start;
}

body:not(.admin-body) .footer-tech .footer-quick-links .footer-col-title {
    grid-column: 1 / -1;
}

body:not(.admin-body) .footer-tech .footer-quick-links a {
    position: relative;
    padding-left: 12px;
    color: #b8c5d6 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-decoration: none;
    transition: color 140ms ease, transform 140ms ease;
}

body:not(.admin-body) .footer-tech .footer-quick-links a::before {
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    content: "";
}

body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(2)::before { background: #22d3ee; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(3)::before { background: #34d399; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(4)::before { background: #60a5fa; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(5)::before { background: #f59e0b; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(6)::before { background: #a78bfa; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(7)::before { background: #f472b6; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(8)::before { background: #2dd4bf; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(9)::before { background: #fb7185; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(10)::before { background: #38bdf8; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(11)::before { background: #4ade80; }
body:not(.admin-body) .footer-tech .footer-quick-links a:nth-child(12)::before { background: #c084fc; }

body:not(.admin-body) .footer-tech .footer-quick-links a:hover {
    color: #fff !important;
    transform: translateX(2px);
}

body:not(.admin-body) .footer-tech .footer-quick-links h2::after,
body:not(.admin-body) .footer-tech .footer-compact-contact h2::after {
    display: none;
}

/* ── Contact ── */
body:not(.admin-body) .footer-tech .footer-compact-contact a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #c5d0de !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-decoration: none;
}

body:not(.admin-body) .footer-tech .footer-compact-contact a span {
    display: inline-grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

body:not(.admin-body) .footer-tech .footer-compact-contact a:nth-child(2) span {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

body:not(.admin-body) .footer-tech .footer-compact-contact a:nth-child(3) span {
    background: rgba(18, 168, 107, 0.18);
    color: #6ee7b7;
}

body:not(.admin-body) .footer-tech .footer-compact-contact a:nth-child(4) span {
    background: rgba(167, 139, 250, 0.18);
    color: #c4b5fd;
}

body:not(.admin-body) .footer-tech .footer-compact-contact a span svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

body:not(.admin-body) .footer-tech .footer-compact-contact a b {
    max-width: none;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body:not(.admin-body) .footer-tech .footer-compact-contact a:hover b {
    color: #fff;
}

/* ── Newsletter ── */
body:not(.admin-body) .footer-tech .footer-newsletter {
    gap: 8px;
    padding: 12px !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 12px !important;
    background:
        linear-gradient(145deg, rgba(167, 139, 250, 0.08), rgba(34, 211, 238, 0.05)),
        rgba(15, 23, 42, 0.55) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body:not(.admin-body) .footer-tech .footer-newsletter p {
    margin: 0;
    color: #94a3b8 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}

body:not(.admin-body) .footer-tech .footer-newsletter label span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body:not(.admin-body) .footer-tech .footer-newsletter input {
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(8, 17, 31, 0.72);
    color: #f8fafc;
    font-size: 12px;
}

body:not(.admin-body) .footer-tech .footer-newsletter button {
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b4ea2, #12a86b);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11, 78, 162, 0.22);
}

body:not(.admin-body) .footer-tech .footer-newsletter button:hover {
    filter: brightness(1.06);
}

/* ── Social icons (multi-color) ── */
body:not(.admin-body) .footer-tech .footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

body:not(.admin-body) .footer-tech .footer-social {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

body:not(.admin-body) .footer-tech .footer-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

body:not(.admin-body) .footer-tech .footer-social--fb:hover {
    border-color: rgba(24, 119, 242, 0.5);
    background: rgba(24, 119, 242, 0.18);
    color: #93c5fd;
    box-shadow: 0 0 0 1px rgba(24, 119, 242, 0.2);
}

body:not(.admin-body) .footer-tech .footer-social--ig:hover {
    border-color: rgba(236, 72, 153, 0.45);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.2));
    color: #f9a8d4;
}

body:not(.admin-body) .footer-tech .footer-social--in:hover {
    border-color: rgba(10, 102, 194, 0.45);
    background: rgba(10, 102, 194, 0.18);
    color: #7dd3fc;
}

body:not(.admin-body) .footer-tech .footer-social--yt:hover {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

/* ── Bottom bar ── */
body:not(.admin-body) .footer-tech .footer-compact-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body:not(.admin-body) .footer-tech .footer-copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px !important;
    padding-bottom: 14px !important;
    color: #7c8da3 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

body:not(.admin-body) .footer-tech .footer-copyright nav a {
    color: #a8b8cb !important;
    font-size: 11px !important;
    font-weight: 500;
    text-decoration: none;
}

body:not(.admin-body) .footer-tech .footer-copyright nav a:hover {
    color: #e2e8f0;
}

body:not(.admin-body) .footer-tech .footer-top-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(18, 168, 107, 0.22));
    border: 1px solid rgba(110, 231, 183, 0.28);
    color: #d1fae5 !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

body:not(.admin-body) .footer-tech .footer-top-link:hover {
    filter: brightness(1.08);
}

@media (max-width: 1024px) {
    body:not(.admin-body) .footer-tech .footer-compact-main {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body:not(.admin-body) .footer-tech .footer-col--newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    body:not(.admin-body) .footer-tech .footer-compact-main {
        grid-template-columns: 1fr !important;
        padding-top: 18px !important;
        padding-bottom: 16px !important;
    }

    body:not(.admin-body) .footer-tech .footer-quick-links {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body) .footer-tech .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
    }
}
