/*
=====================================================================
AMIABLE IMPEX — CONTACT CARD + FOOTER (site-wide)
One continuous dark textured block: framed contact card on top,
four clearly separated columns, simple bottom bar + back-to-top.
Markup: resources/views/partials/footer.php
=====================================================================
*/

.nx-cta,
.nx-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    font-family: var(--nx-sans);
    color: var(--nx-muted-d);
    background-color: #0b0c0f;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 6px);
}

/* Fine grid texture (same family as the homepage hero) */
.nx-foot-texture {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(243, 238, 230, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 238, 230, .045) 1px, transparent 1px);
    background-size: 64px 64px;
}
.nx-cta .nx-foot-texture {
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 0%, transparent 80%);
            mask-image: radial-gradient(ellipse 70% 90% at 50% 100%, #000 0%, transparent 80%);
}
.nx-footer .nx-foot-texture {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* ------------------------------------------------------------------
   CONTACT CARD
------------------------------------------------------------------ */
.nx-cta { padding: 88px 28px 0; }

.nx-cta-glow {
    position: absolute;
    left: 50%; top: 40px;
    width: 900px; height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(229, 52, 59, .2), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.nx-cta-inner {
    position: relative;
    max-width: calc(var(--nx-wrap) - 56px);
    margin: 0 auto;
    padding: 44px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, rgba(229, 52, 59, .16) 0%, rgba(255, 255, 255, .025) 55%);
    border: 1px solid rgba(166, 207, 63, .26);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nx-cta-inner::before { /* copper seam on top edge */
    content: "";
    position: absolute;
    left: 48px; right: 48px; top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nx-copper-2), transparent);
}

.nx-cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 500 11.5px/1.4 var(--nx-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nx-copper-2);
}
.nx-cta-kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }

.nx-cta-title {
    margin: 14px 0 0;
    font: 400 clamp(28px, 3vw, 40px)/1.1 var(--nx-serif);
    letter-spacing: -.015em;
    color: #f6f2eb;
}

.nx-cta-links { display: flex; flex-wrap: wrap; gap: 12px; }

.nx-cta-link {
    display: inline-grid;
    grid-template-columns: 44px auto 18px;
    align-items: center;
    gap: 14px;
    padding: 10px 20px 10px 10px;
    color: #f6f2eb;
    text-decoration: none;
    background: rgba(11, 12, 15, .55);
    border: 1px solid rgba(243, 238, 230, .14);
    border-radius: 999px;
    transition: background .4s var(--nx-ease), border-color .4s var(--nx-ease), color .4s var(--nx-ease);
}
.nx-cta-icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    color: #fff;
    background: var(--nx-copper-grad);
    border-radius: 50%;
}
.nx-cta-icon svg { width: 18px; height: 18px; }
.nx-cta-text { font: 500 16px/1.2 var(--nx-sans); white-space: nowrap; }
.nx-cta-arrow { width: 18px; height: 18px; color: var(--nx-copper-2); transition: transform .4s var(--nx-ease); }
.nx-cta-link:hover { background: rgba(229, 52, 59, .14); border-color: rgba(166, 207, 63, .55); color: #fff; }
.nx-cta-link:hover .nx-cta-arrow { transform: rotate(45deg); }
.nx-cta-link:focus-visible { outline: 2px solid var(--nx-copper-2); outline-offset: 3px; }

/* ------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------ */
.nx-footer-inner { max-width: var(--nx-wrap); margin: 0 auto; padding: 72px 28px 26px; }

.nx-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.35fr;
}
.nx-footer-grid > * { padding: 4px 36px; }
.nx-footer-grid > *:first-child { padding-left: 0; }
.nx-footer-grid > *:last-child { padding-right: 0; }
.nx-footer-grid > * + * { border-left: 1px solid rgba(243, 238, 230, .08); }

.nx-footer-logo { display: inline-flex; }
.nx-footer-logo img { width: auto; height: 36px; }

.nx-footer-brand p {
    margin: 22px 0 24px;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--nx-muted-d);
}

.nx-footer-social {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    color: #f6f2eb;
    border: 1px solid rgba(243, 238, 230, .16);
    border-radius: 12px;
    transition: background .3s var(--nx-ease), border-color .3s var(--nx-ease), color .3s var(--nx-ease);
}
.nx-footer-social svg { width: 15px; height: 15px; }
.nx-footer-social:hover { color: var(--nx-ink); background: var(--nx-copper-2); border-color: var(--nx-copper-2); }

/* Column headings: clear label + short copper underline */
html body .nx-footer h3 {
    position: relative;
    margin: 4px 0 26px;
    padding-bottom: 14px;
    font: 500 17px/1.3 var(--nx-serif) !important;
    letter-spacing: -.005em;
    color: #f6f2eb;
}
html body .nx-footer h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 2px;
    background: var(--nx-copper-grad);
    border-radius: 2px;
}

.nx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nx-footer-col a {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--nx-muted-d);
    text-decoration: none;
    transition: color .3s var(--nx-ease);
}
.nx-footer-col li a::before {
    content: "";
    width: 5px; height: 5px;
    margin-right: 12px;
    flex: none;
    border: 1px solid rgba(166, 207, 63, .6);
    border-radius: 50%;
    transition: background .3s var(--nx-ease), border-color .3s var(--nx-ease);
}
.nx-footer-col a:hover { color: #fff; }
.nx-footer-col li a:hover::before { background: var(--nx-copper-2); border-color: var(--nx-copper-2); }

/* Head office */
.nx-office-line {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    align-items: start;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.7;
}
.nx-office-icon {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    color: var(--nx-copper-2);
    background: rgba(229, 52, 59, .08);
    border: 1px solid rgba(166, 207, 63, .24);
    border-radius: 10px;
}
.nx-office-icon svg { width: 15px; height: 15px; }
.nx-office-line a { color: #f6f2eb; text-decoration: none; }
.nx-office-line a:hover { color: var(--nx-copper-2); }
.nx-sep { margin: 0 6px; opacity: .4; }

/* Bottom bar */
.nx-footer-rule {
    height: 1px;
    margin: 56px 0 22px;
    background: rgba(243, 238, 230, .1);
}

.nx-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    font-size: 13px;
    color: rgba(243, 238, 230, .5);
}
.nx-footer-bottom > span { margin-right: auto; }
.nx-footer-bottom strong { color: #f6f2eb; font-weight: 600; }
.nx-footer-bottom a { color: #f6f2eb; text-decoration: none; }
.nx-footer-bottom a:hover { color: var(--nx-copper-2); }

.nx-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.nx-legal a { color: rgba(243, 238, 230, .7); }
.nx-legal a + a::before {
    content: "";
    display: inline-block;
    width: 3px; height: 3px;
    margin: 0 14px;
    vertical-align: middle;
    background: rgba(166, 207, 63, .7);
    border-radius: 50%;
}
.nx-legal a[aria-current="page"] { color: var(--nx-copper-2); }

.nx-totop {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    color: #fff !important;
    background: var(--nx-copper-grad);
    border-radius: 12px;
    transition: transform .4s var(--nx-ease), box-shadow .4s var(--nx-ease);
}
.nx-totop svg { width: 17px; height: 17px; }
.nx-totop:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(229, 52, 59, .8); }
.nx-totop:focus-visible { outline: 2px solid var(--nx-copper-2); outline-offset: 3px; }

/* ------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .nx-cta-inner { grid-template-columns: 1fr; gap: 28px; }
    .nx-footer-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
    .nx-footer-grid > * { padding: 0 28px; }
    .nx-footer-grid > *:nth-child(odd) { padding-left: 0; border-left: 0; }
    .nx-footer-grid > *:nth-child(even) { padding-right: 0; }
    .nx-footer-brand { grid-column: 1 / -1; padding: 0 !important; border: 0 !important; }
    .nx-footer-grid > *:nth-child(2) { padding-left: 0; border-left: 0; }
    .nx-footer-grid > *:nth-child(3) { padding-left: 28px; padding-right: 0; border-left: 1px solid rgba(243, 238, 230, .08); }
    .nx-footer-grid > *:nth-child(4) { grid-column: 1 / -1; padding: 0; border-left: 0; }
}

@media (max-width: 640px) {
    .nx-cta { padding: 64px 18px 0; }
    .nx-cta-inner { padding: 30px 22px; border-radius: 20px; }
    .nx-cta-inner::before { left: 22px; right: 22px; }
    .nx-cta-links { display: grid; }
    .nx-cta-link { grid-template-columns: 40px 1fr 18px; }
    .nx-cta-icon { width: 40px; height: 40px; }
    .nx-cta-text { font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
    .nx-footer-inner { padding: 56px 18px 22px; }
    .nx-footer-grid { grid-template-columns: 1fr; row-gap: 36px; }
    .nx-footer-grid > * { padding: 0 !important; border-left: 0 !important; }
    .nx-footer-grid > *:nth-child(4) { grid-column: auto; }
    .nx-footer-bottom { flex-direction: column; align-items: flex-start; }
    .nx-footer-bottom > span { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-footer *, .nx-cta * { transition: none !important; }
}
