/* ==========================================================
   NearMeCab - Site footer
   ========================================================== */
.nf-footer {
    --nf-red: #ff1a1a;
    --nf-orange: #ff6a3d;
    --nf-dark: #0d0f13;

    position: relative;
    padding-top: 40px;
    /* dark area starts halfway down the app banner */
    background: linear-gradient(to bottom, transparent 0, transparent 170px, var(--nf-dark) 170px);
    font-family: 'Sora', sans-serif;
}

/* ---------- App banner ---------- */
.nf-app {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 30px;
    padding: 46px 56px;
    border-radius: 28px;
    background: linear-gradient(120deg, #ff1a1a 0%, #f01313 45%, #ff6a3d 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(255, 26, 26, .55);
}
.nf-app::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(to right, transparent, #000 70%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 70%);
    pointer-events: none;
}
.nf-app-glow {
    position: absolute;
    right: -80px;
    top: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    filter: blur(10px);
    animation: nf-float 9s ease-in-out infinite alternate;
}
.nf-app-txt { position: relative; }
.nf-app-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.nf-app h2 {
    margin: 16px 0 10px;
    font-family: 'Epilogue', sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}
.nf-app p {
    max-width: 480px;
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}
.nf-app-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.nf-play img {
    height: 54px;
    width: auto;
    border-radius: 10px;
    transition: transform .2s;
}
.nf-gmb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 20px 0 16px;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.nf-gmb i {
    font-size: 24px;
    background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nf-gmb span { font-size: 15px; font-weight: 700; line-height: 1.1; }
.nf-gmb small { display: block; font-size: 10px; font-weight: 500; color: #6b7280; }
.nf-play:hover img,
.nf-gmb:hover { transform: translateY(-3px); }
.nf-gmb:hover { color: #1f2937; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .35); }

/* phone mock-up */
.nf-app-visual {
    position: relative;
    display: flex;
    justify-content: center;
    margin: -20px 0 -110px;
}
.nf-phone {
    width: 200px;
    height: 360px;
    padding: 10px;
    border-radius: 34px;
    background: #111318;
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, .5), inset 0 0 0 2px #2a2d35;
    transform: rotate(-8deg);
    animation: nf-phone 6s ease-in-out infinite;
}
.nf-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 60px;
    height: 16px;
    margin-left: -30px;
    border-radius: 10px;
    background: #111318;
    z-index: 2;
}
.nf-phone-screen {
    position: relative;
    height: 100%;
    border-radius: 26px;
    background: #f4f1ea;
    overflow: hidden;
}
.nf-phone-map {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 17, 21, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(rgba(15, 17, 21, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        #eef1ec;
}
.nf-phone-map svg {
    position: absolute;
    inset: 12% 8% 30%;
    width: 84%;
    height: 58%;
    overflow: visible;
}
.nf-phone-map path {
    fill: none;
    stroke: var(--nf-red);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 6 6;
    animation: nf-route 1.2s linear infinite;
    vector-effect: non-scaling-stroke;
}
.nf-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.nf-pin-a { left: 15%; top: 64%; background: #16a34a; }
.nf-pin-b { right: 12%; top: 10%; background: var(--nf-red); animation: nf-pulse 1.8s ease-out infinite; }
.nf-phone-card {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .2);
}
.nf-phone-card i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 26, 26, .1);
    color: var(--nf-red);
}
.nf-phone-card b { display: block; font-size: 12px; color: #0f1115; }
.nf-phone-card small { font-size: 10px; color: #6b6f76; }

/* ---------- Main footer ---------- */
.nf-main {
    position: relative;
    padding: 80px 0 0;
    color: rgba(255, 255, 255, .65);
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(255, 26, 26, .12), transparent 70%),
        radial-gradient(500px 300px at 100% 100%, rgba(255, 106, 61, .08), transparent 70%);
}
.nf-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 50px;
}
.nf-logo {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 14px;
    background: #fff;
}
.nf-logo img { display: block; max-height: 44px; width: auto; }
.nf-brand p {
    max-width: 360px;
    margin: 20px 0 24px;
    font-size: 14px;
    line-height: 1.75;
}
.nf-helpline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.nf-helpline i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nf-red), var(--nf-orange));
    font-size: 18px;
}
.nf-helpline small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
}
.nf-helpline:hover { color: #fff; background: rgba(255, 26, 26, .12); border-color: rgba(255, 26, 26, .35); }

.nf-col h4 {
    position: relative;
    margin: 6px 0 22px;
    padding-bottom: 12px;
    font-family: 'Epilogue', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.nf-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--nf-red), var(--nf-orange));
}
.nf-col ul { margin: 0; padding: 0; list-style: none; }
.nf-col li { margin-bottom: 12px; font-size: 14px; }
.nf-col a {
    position: relative;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.nf-col:not(.nf-contact) a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--nf-red);
    transition: width .2s;
}
.nf-col:not(.nf-contact) a:hover { padding-left: 16px; }
.nf-col:not(.nf-contact) a:hover::before { width: 10px; }
.nf-col a:hover,
.nf-col li.active a { color: #fff; }

.nf-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.nf-contact i {
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: var(--nf-red);
}
.nf-contact span,
.nf-contact a { padding-top: 6px; overflow-wrap: anywhere; }

.nf-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.nf-bottom p { margin: 0; font-size: 13px; }
.nf-bottom p a { color: #fff; font-weight: 600; text-decoration: none; }
.nf-bottom p a:hover { color: var(--nf-red); }
.nf-social { display: flex; gap: 10px; }
.nf-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
    transition: transform .2s, background .2s;
}
.nf-social a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--nf-red), var(--nf-orange));
    color: #fff;
}

/* ---------- Animations ---------- */
@keyframes nf-float { to { transform: translate(-40px, 40px) scale(1.1); } }
@keyframes nf-phone {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50%      { transform: rotate(-6deg) translateY(-10px); }
}
@keyframes nf-route { to { stroke-dashoffset: -12; } }
@keyframes nf-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 26, 26, .5); }
    100% { box-shadow: 0 0 0 12px rgba(255, 26, 26, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .nf-app { grid-template-columns: 1fr; padding: 36px 32px; text-align: center; }
    .nf-app p { margin-left: auto; margin-right: auto; }
    .nf-app-cta { justify-content: center; }
    .nf-app-visual { display: none; }
    .nf-footer { background: linear-gradient(to bottom, transparent 0, transparent 200px, var(--nf-dark) 200px); }
    .nf-grid { grid-template-columns: 1fr 1fr; }
    .nf-brand { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .nf-footer { padding-top: 24px; }
    .nf-app { padding: 30px 20px; border-radius: 22px; }
    .nf-app p { font-size: 14px; }
    .nf-play img, .nf-gmb { height: 48px; }
    .nf-main { padding-top: 56px; }
    .nf-grid { gap: 30px 20px; padding-bottom: 36px; }
    .nf-contact { grid-column: 1 / -1; }
    .nf-bottom { flex-direction: column-reverse; text-align: center; }
}

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