/* =========================================================
   NVK ENGINEERING — PREMIUM FOOTER
   Brand system: graphite, blue, calm surfaces and fine dividers.
   ========================================================= */

.nvk-footer,
.nvk-footer * {
    box-sizing: border-box;
}

.nvk-footer {
    width: 100%;
    margin-top: clamp(64px, 8vw, 120px);
    padding: clamp(30px, 4.2vw, 58px) var(--nvk-content-gutter, 24px) 20px;
    border-top: 1px solid var(--nvk-color-border);
    background: var(--nvk-color-bg);
    color: var(--nvk-color-text);
}

.nvk-footer__inner {
    width: 100%;
    margin-inline: auto;
}

/* Main brand line */
.nvk-footer__top {
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(320px, 1.8fr) minmax(170px, .9fr);
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
    padding-bottom: clamp(34px, 4.5vw, 62px);
}

.nvk-footer__brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-width: 0;
}

.nvk-footer__brand img {
    display: block;
    width: clamp(132px, 13vw, 280px);
    height: auto;
    object-fit: contain;
}

.nvk-footer__statement {
    margin: 0;
    color: var(--nvk-color-text);
    font-family: var(--nvk-font-body, "Manrope", sans-serif);
    font-size: clamp(26px, 3vw, 48px);
    font-weight: 800;
    line-height: 1.09;
    letter-spacing: -.055em;
}

.nvk-footer__statement span {
    color: var(--nvk-color-primary);
}

.nvk-footer__contact {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid var(--nvk-color-border);
    border-radius: 999px;
    background: transparent;
    color: var(--nvk-color-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nvk-footer__contact:hover {
    border-color: var(--nvk-color-primary);
    color: var(--nvk-color-primary);
    background: var(--nvk-color-primary-soft);
}

.nvk-footer__contact:active {
    transform: translateY(1px);
}

.nvk-footer svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    stroke-width: 1.8;
}

/* Contact row: four quiet groups, separated by hairline dividers */
.nvk-footer__details {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1.08fr) minmax(0, .92fr) minmax(0, 1.55fr);
    align-items: start;
    padding-block: clamp(26px, 3vw, 42px);
    border-top: 1px solid var(--nvk-color-border);
    border-bottom: 1px solid var(--nvk-color-border);
}

.nvk-footer__detail {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    min-width: 0;
    padding-inline: clamp(14px, 1.8vw, 28px);
}

.nvk-footer__detail:first-child {
    padding-left: 0;
}

.nvk-footer__detail + .nvk-footer__detail {
    border-left: 1px solid var(--nvk-color-border);
}

.nvk-footer__detail-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--nvk-color-primary) 8%, var(--nvk-color-border));
    border-radius: 13px;
    background: var(--nvk-color-primary-soft);
    color: var(--nvk-color-primary);
}

.nvk-footer__detail-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.9;
}

.nvk-footer__detail-copy {
    min-width: 0;
}

.nvk-footer__detail-title {
    margin: 2px 0 11px;
    color: var(--nvk-color-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.nvk-footer address {
    margin: 0;
    color: var(--nvk-color-text-muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.7;
}

.nvk-footer__phone,
.nvk-footer__email {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: color 180ms ease;
}

.nvk-footer__phone {
    color: var(--nvk-color-text);
    font-size: clamp(14px, 1.05vw, 18px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.025em;
}

.nvk-footer__email {
    margin-top: 4px;
    color: var(--nvk-color-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.nvk-footer__phone:hover,
.nvk-footer__email:hover,
.nvk-footer__sub-link:hover {
    color: var(--nvk-color-primary);
}

.nvk-footer__sub-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: var(--nvk-color-text-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 180ms ease;
}

.nvk-footer__sub-link svg {
    width: 12px;
    height: 12px;
}

/* Social brand marks use Simple Icons CDN masks */
.nvk-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nvk-footer__social-link {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--nvk-color-border);
    border-radius: 12px;
    background: var(--nvk-color-surface-raised);
    color: var(--nvk-color-text);
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nvk-footer__social-link:hover {
    border-color: var(--nvk-color-primary);
    background: var(--nvk-color-primary-soft);
    color: var(--nvk-color-primary);
    transform: translateY(-2px);
}

.nvk-footer__social-mark {
    display: block;
    width: 19px;
    height: 19px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.nvk-footer__social-mark--instagram {
    -webkit-mask-image: url("https://cdn.simpleicons.org/instagram");
    mask-image: url("https://cdn.simpleicons.org/instagram");
}

.nvk-footer__social-mark--youtube {
    -webkit-mask-image: url("https://cdn.simpleicons.org/youtube");
    mask-image: url("https://cdn.simpleicons.org/youtube");
}

.nvk-footer__social-mark--whatsapp {
    -webkit-mask-image: url("https://cdn.simpleicons.org/whatsapp");
    mask-image: url("https://cdn.simpleicons.org/whatsapp");
}

/* App badges: images only, no wrapper frame; keep a subtle hover lift. */
.nvk-footer__app-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}

.nvk-footer__app-badge {
    display: block;
    min-width: 0;
    line-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: transform 180ms ease;
}

.nvk-footer__app-badge:hover {
    transform: translateY(-2px);
}

.nvk-footer__app-badge:focus-visible {
    outline: 2px solid var(--nvk-color-focus);
    outline-offset: 4px;
    border-radius: 4px;
}

.nvk-footer__app-badge img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 96;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Bottom navigation row */
.nvk-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    color: var(--nvk-color-text-muted);
    font-size: 10px;
    line-height: 1.6;
}

.nvk-footer__bottom p {
    margin: 0;
}

.nvk-footer__bottom nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(14px, 2vw, 28px);
}

.nvk-footer__bottom a {
    transition: color 180ms ease;
}

.nvk-footer__bottom a:hover,
.nvk-footer__top-link:hover {
    color: var(--nvk-color-primary);
}

.nvk-footer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

/* Medium screens: two rows of contact groups, no cramped text */
@media (max-width: 1180px) {
    .nvk-footer__top {
        grid-template-columns: minmax(150px, .75fr) minmax(280px, 1.7fr) minmax(150px, .8fr);
        gap: 22px;
    }

    .nvk-footer__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 0;
    }

    .nvk-footer__detail {
        padding: 22px;
    }

    .nvk-footer__detail:first-child {
        padding-left: 0;
    }

    .nvk-footer__detail:nth-child(3) {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--nvk-color-border);
    }

    .nvk-footer__detail:nth-child(4) {
        border-top: 1px solid var(--nvk-color-border);
    }
}

@media (max-width: 760px) {
    .nvk-footer {
        margin-top: clamp(52px, 12vw, 84px);
        padding-top: 30px;
    }

    .nvk-footer__top {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 22px;
        padding-bottom: 30px;
    }

    .nvk-footer__brand img {
        width: 148px;
    }

    .nvk-footer__statement {
        font-size: clamp(30px, 7vw, 42px);
    }

    .nvk-footer__contact {
        justify-self: start;
    }

    .nvk-footer__details {
        grid-template-columns: minmax(0, 1fr);
        padding-block: 6px;
    }

    .nvk-footer__detail,
    .nvk-footer__detail:first-child,
    .nvk-footer__detail:nth-child(3),
    .nvk-footer__detail:nth-child(4) {
        padding: 20px 0;
        border-left: 0;
    }

    .nvk-footer__detail + .nvk-footer__detail {
        border-top: 1px solid var(--nvk-color-border);
    }

    .nvk-footer__detail-icon {
        width: 44px;
        height: 44px;
    }
	
	 .nvk-footer__detail + .nvk-footer__detail {
        border-left: 0;
    }

    .nvk-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding-top: 18px;
    }

    .nvk-footer__bottom nav {
        justify-content: flex-start;
        gap: 12px 20px;
    }
}

@media (max-width: 390px) {
    .nvk-footer__detail {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
    }

    .nvk-footer__detail-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .nvk-footer__app-badges {
        grid-template-columns: minmax(0, 1fr);
        max-width: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nvk-footer__contact,
    .nvk-footer__phone,
    .nvk-footer__email,
    .nvk-footer__sub-link,
    .nvk-footer__social-link,
    .nvk-footer__app-badge,
    .nvk-footer__bottom a {
        transition: none;
    }

    .nvk-footer__social-link:hover,
    .nvk-footer__app-badge:hover {
        transform: none;
    }
}
