/* =========================================================
   Nothing but Joyful – components.css
   Shared reusable component styles
   ========================================================= */

/* Screen-reader only utility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Pill button (shared by nav CTA and elsewhere) */
.nbj-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    border-radius: 3rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.nbj-btn-pill--navy {
    background-color: var(--color-navy);
    color: var(--color-white);
    border: 2px solid transparent;
}

.nbj-btn-pill--navy:hover,
.nbj-btn-pill--navy:focus-visible {
    background-color: var(--color-blue);
    outline: none;
}

/* Section headings shared pattern */
.nbj-section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-teal);
    display: block;
    margin-bottom: 0.5rem;
}

/* Blocksy nav transparent-to-solid on scroll */
body.nbj-scrolled .ct-header {
    background-color: var(--color-white) !important;
    box-shadow: 0 2px 16px rgba(30, 58, 110, 0.1);
}
