/*
 * NetPear Location Links
 * Full-width responsive design
 * Version 1.1.0
 *
 * Scoped exclusively to the shortcode component.
 */

/* Remove spacing from the ACF wrapper */
section.np-location-links-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/*
 * Break out of the theme's Bootstrap container.
 * Background extends across the viewport.
 */
/* Full-width background without horizontal overflow */
section.np-location-links-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 65px 0 !important;
    background: #f7f7f7 !important;
    box-sizing: border-box;
}

/* Inner shortcode section */
section.np-location-links-wrapper .npll-section {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    background: transparent;
    box-sizing: border-box;
}

/* Heading area */
section.np-location-links-wrapper .npll-header {
    text-align: center;
    margin: 0 auto 38px;
    max-width: 760px;
}

section.np-location-links-wrapper .npll-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #2fa36f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

section.np-location-links-wrapper .npll-header h2 {
    margin: 0 0 15px;
    color: #202020;
    font-size: clamp(27px, 3vw, 35px);
    font-weight: 700;
    line-height: 1.25;
	    text-align: center;

}

section.np-location-links-wrapper .npll-header p {
    max-width: 620px;
    margin: 0 auto;
    color: #626262;
    font-size: 16px;
    line-height: 1.7;
}

/* Three-card layout */
section.np-location-links-wrapper .npll-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}

section.np-location-links-wrapper .npll-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Cards */
section.np-location-links-wrapper .npll-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 100px;
    padding: 25px 28px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .035);
    text-decoration: none;
    box-sizing: border-box;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

section.np-location-links-wrapper .npll-name {
    color: #202020;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

section.np-location-links-wrapper .npll-arrow {
    flex-shrink: 0;
    color: #2fa36f;
    font-size: 24px;
    line-height: 1;
    transition: transform .2s ease;
}

section.np-location-links-wrapper .npll-card:hover {
    transform: translateY(-4px);
    border-color: #2fa36f;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .075);
}

section.np-location-links-wrapper .npll-card:hover .npll-arrow {
    transform: translateX(5px);
}

/* Bottom button */
section.np-location-links-wrapper .npll-footer {
    margin-top: 35px;
    text-align: center;
}

section.np-location-links-wrapper .npll-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    background: #2fa36f;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background .2s ease,
        transform .2s ease;
}

section.np-location-links-wrapper .npll-all:hover {
    background: #25885b;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Accessibility */
section.np-location-links-wrapper .npll-card:focus-visible,
section.np-location-links-wrapper .npll-all:focus-visible {
    outline: 3px solid #2fa36f;
    outline-offset: 4px;
}

/* Tablet */
@media (max-width: 991px) {
    section.np-location-links-wrapper .npll-section {
        padding: 60px 0;
    }

    section.np-location-links-wrapper .npll-grid {
        gap: 15px;
    }

    section.np-location-links-wrapper .npll-card {
        min-height: 85px;
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    section.np-location-links-wrapper .npll-section {
        padding: 50px 0;
    }

    section.np-location-links-wrapper .npll-container {
        width: calc(100% - 32px);
    }

    section.np-location-links-wrapper .npll-header {
        margin-bottom: 28px;
    }

    section.np-location-links-wrapper .npll-header h2 {
        font-size: 28px;
    }

    section.np-location-links-wrapper .npll-header p {
        font-size: 15px;
    }

    section.np-location-links-wrapper .npll-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    section.np-location-links-wrapper .npll-card {
        min-height: 75px;
        padding: 19px 22px;
    }

    section.np-location-links-wrapper .npll-name {
        font-size: 17px;
    }

    section.np-location-links-wrapper .npll-footer {
        margin-top: 28px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    section.np-location-links-wrapper .npll-card,
    section.np-location-links-wrapper .npll-arrow,
    section.np-location-links-wrapper .npll-all {
        transition: none;
    }
}
