/*
Theme Name: Cultivating Digital Child
Author: Cultivating Digital
Description: Astra child theme for CD client sites. Custom CSS only for what Astra Customizer cannot handle.
Template: astra
Version: 2026.07.02
Text Domain: cultivating-digital-child
*/

/* ============================================================
   NJHW brand tokens — hard-coded so nothing depends on the
   Astra global color palette. Astra Customizer color changes
   never override these; child theme wins.
   ============================================================ */
:root {
    --njhw-primary:   #626D73;   /* dark blue-gray */
    --njhw-secondary: #293B3B;   /* near-black */
    --njhw-tertiary:  #A8BEC1;   /* sage */
    --njhw-white:     #FFFFFF;
    --njhw-black:     #000000;
}


/* ============================================================
   NJHW brand additions
   Only CSS that cannot be set through the Astra Customizer lives here.
   Never add rules to Customizer > Additional CSS.
   ============================================================ */

/* --- Section title treatments — uppercase + letter-spacing
       Astra Typography Pro would handle these per-element; that module is
       off per CD standard, so defined here. */
.njhw-section-title,
.wp-block-heading.is-style-njhw-section-title,
.slide-category,
.section-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.njhw-location-title,
.location-title {
    text-transform: uppercase;
    letter-spacing: 2.8px;
}
/* --- End section title treatments --- */


/* --- NJHW home video hero — parent has alignfull so this just fills 100%
       No 100vw breakout hack needed. --- */
.njhw-video-hero {
    position: relative;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    background-color: var(--njhw-primary);
}
.njhw-video-hero__embed {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.njhw-video-hero__embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
}
.njhw-video-hero__content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.njhw-video-hero__title {
    color: #FFFFFF !important;
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.njhw-video-hero__subtitle {
    color: #FFFFFF !important;
    font-size: 1.125rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
@media (max-width: 768px) {
    .njhw-video-hero { min-height: 400px; }
    .njhw-video-hero__content { min-height: 400px; padding: 4rem 1rem; }
    .njhw-video-hero__title { font-size: 1.75rem; }
    .njhw-video-hero__subtitle { font-size: 0.875rem; }
}
/* --- End video hero --- */


/* --- NJHW recurring Locations section
       Injected via child theme functions.php on astra_footer_before hook.
       Renders across every page except the 4 individual location pages. */
.njhw-locations-section {
    background-color: var(--njhw-primary);
    color: #FFFFFF;
    padding: 5rem 1.5rem;
}
.njhw-locations-inner {
    max-width: 1340px;
    margin: 0 auto;
}
.njhw-locations-heading {
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 2.25rem;
    text-align: center;
    margin: 0 0 0.75rem;
}
.njhw-locations-subheading {
    color: var(--njhw-tertiary);
    font-size: 1.125rem;
    text-align: center;
    margin: 0 0 3rem;
}
.njhw-locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.njhw-location-card {
    text-align: center;
    padding: 1rem;
}
.njhw-map-pin {
    color: var(--njhw-tertiary);
    font-size: 2.75rem;
    margin: 0 auto 1.5rem;
    display: block;
    text-align: center;
    line-height: 1;
    width: 100%;
}
.njhw-location-name {
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2.5px;
    font-size: 1.375rem;
    margin: 0 0 1rem;
}
.njhw-location-name a {
    color: #FFFFFF;
    text-decoration: none;
}
.njhw-location-name a:hover {
    color: var(--njhw-tertiary);
}
.njhw-location-address {
    color: #FFFFFF;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 768px) {
    .njhw-locations-grid { grid-template-columns: 1fr; }
}
/* --- End recurring Locations --- */


/* --- Contact + Single Service tertiary-bg sections */
.njhw-tertiary-bg {
    background-color: var(--njhw-tertiary);
    color: var(--njhw-secondary);
    padding: 6rem 1rem;
}
/* --- End tertiary-bg --- */

/* Header */
.header-location-row, .header-location-row a {
    font-size: 0.7rem;
    margin-right: 5px;
    margin-left: 5px;
}
.site-logo-img {
    z-index: 100;
}
/* End Header */

/* ============================================================
   Home page — Spectra Container sections
   Uses uagb/container root wrappers per cd-wp-build.
   ============================================================ */

/* --- Section band backgrounds — Spectra root containers paint edge-to-edge.
       Inner boxed containers constrain content to theme width.
       margin-top negatives on specific sections (like services overlapping hero)
       are applied on the specific class rules below, NOT reset here. --- */
.wp-block-uagb-container.njhw-hero-section,
.wp-block-uagb-container.njhw-services-section,
.wp-block-uagb-container.njhw-as-seen-section,
.wp-block-uagb-container.njhw-about-section,
.wp-block-uagb-container.njhw-urgent-section,
.wp-block-uagb-container.njhw-featured-cards-section,
.wp-block-uagb-container.njhw-provider-section,
.wp-block-uagb-container.njhw-qualities-section {
    display: block;
    padding: 0;
    width: 100%;
    max-width: none;
}

/* --- Services overlap: pull the section up over the video --- */
.wp-block-uagb-container.njhw-services-section { margin-top: -25px !important;
    background: #FFFFFF !important;
    position: relative;
    z-index: 3;
    padding: 0 !important;
}
@media (max-width: 900px) {
    .wp-block-uagb-container.njhw-services-section { margin-top: -15px !important; }
}

/* --- Video hero --- */
.wp-block-uagb-container.njhw-hero-section {
    min-height: 80vh !important;
    height: auto !important;
}
.njhw-hero-section .njhw-video-hero {
    position: relative;
    width: 100%;
    height: 80vh !important;
    min-height: 80vh !important;
    overflow: hidden;
    background-color: var(--njhw-primary);
    display: block;
}
.njhw-video-hero__embed { position: absolute; inset: 0; }
.njhw-video-hero__embed iframe {
    position: absolute; top: 50%; left: 50%;
    width: 100vw; height: 56.25vw;
    min-height: 100%; min-width: 177.78vh;
    transform: translate(-50%, -50%);
    pointer-events: none; border: 0;
}
@media (max-width: 768px) {
    .njhw-hero-section .njhw-video-hero { height: 320px; min-height: 320px; }
}

/* --- 8 SERVICES GRID (overlaps hero, tall tiles, big row gap between the 2 rows) --- */
.njhw-services-section { padding: 0 1.5rem !important; background: #FFFFFF !important; margin-top: -25px !important;}
.njhw-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.25rem;
    row-gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.njhw-service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 1rem 1.5rem;
    text-align: center;
    text-decoration: none !important;
    color: #FFFFFF !important;
    border-radius: 6px;
    min-height: 260px;
    transition: transform 0.2s ease;
}
.njhw-service-tile:hover {
    transform: translateY(-4px);
    color: #FFFFFF !important;
}
.njhw-service-tile__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}
.njhw-service-tile__title {
    color: #FFFFFF !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 1rem !important;
    line-height: 1.25;
}
.njhw-service-tile__arrow {
    color: #FFFFFF;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.9;
}
@media (max-width: 900px) {
    .njhw-services-section { margin-top: -100px !important; padding: 0 1rem !important; }
    .njhw-services-grid { column-gap: 0.5rem; row-gap: 1.5rem; }
    .njhw-service-tile { padding: 1.5rem 0.5rem; min-height: 180px; }
    .njhw-service-tile__icon { width: 44px; height: 44px; }
    .njhw-service-tile__title { font-size: 0.625rem !important; letter-spacing: 0.8px !important; }
}
@media (max-width: 600px) {
    .njhw-services-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
    .njhw-service-tile { min-height: 180px; }
}

/* --- AS SEEN ON --- */
.njhw-as-seen-section {
    padding: 3rem 1.5rem 2rem !important;
    background: #FFFFFF !important;
    text-align: center;
}
.njhw-as-seen-section .wp-block-uagb-image { max-width: 800px; margin: 0 auto; }
.njhw-as-seen-section .wp-block-uagb-image img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* --- ABOUT --- */
.njhw-about-section {
    padding: 3rem 1.5rem !important;
    background: #FFFFFF !important;
    text-align: center;
}
.njhw-about-section .uagb-heading-text,
.njhw-about-section .njhw-section-title .uagb-heading-text {
    color: var(--njhw-secondary) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 2rem !important;
    text-align: center;
}
.njhw-about-section p {
    color: var(--njhw-secondary) !important;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
}

/* --- URGENT --- */
.njhw-urgent-section {
    padding: 2rem 1.5rem 4rem !important;
    background: #FFFFFF !important;
    text-align: center;
}
.njhw-urgent-section .uagb-heading-text {
    color: var(--njhw-secondary) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 1.5rem !important;
    text-align: center;
}
.njhw-urgent-section p {
    color: var(--njhw-secondary) !important;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
}
.njhw-urgent-section .uagb-buttons-layout-wrap,
.njhw-urgent-section .wp-block-uagb-buttons {
    justify-content: center !important;
    margin-top: 2rem !important;
}



/* --- 4 FEATURED CARDS --- */
.njhw-featured-cards-section {
    padding: 4rem 1.5rem !important;
    background: #F5F7F7 !important;
}
.njhw-featured-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1340px;
    margin: 0 auto;
}
.njhw-featured-card {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.njhw-featured-card .njhw-card-image {
    width: 100%; aspect-ratio: 16/10;
    object-fit: cover; border-radius: 6px;
    margin-bottom: 1rem;
}
.njhw-featured-card .njhw-card-category {
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.75rem; font-weight: 700;
    color: var(--njhw-primary); text-align: center;
    margin: 0 0 0.5rem;
}
.njhw-featured-card .njhw-card-title {
    font-size: 1.125rem; font-weight: 700;
    color: var(--njhw-secondary); text-align: center;
    margin: 0 0 0.5rem; line-height: 1.3;
}
.njhw-featured-card .njhw-card-subtitle {
    color: var(--njhw-primary); text-align: center;
    margin: 0 0 0.75rem; font-size: 0.9375rem;
}
.njhw-featured-card .njhw-card-body {
    color: var(--njhw-secondary); text-align: center;
    font-size: 0.875rem; line-height: 1.5;
    margin: 0 0 1.25rem; flex-grow: 1;
}
.njhw-featured-card .njhw-card-cta { text-align: center; margin: 0; }
.njhw-featured-card .njhw-card-cta a {
    display: inline-block;
    background: var(--njhw-primary); color: #FFFFFF !important;
    padding: 0.6rem 1.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 700;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    border: 2px solid var(--njhw-primary);
    transition: all 0.2s ease;
}
.njhw-featured-card .njhw-card-cta a:hover {
    background: #FFFFFF; color: var(--njhw-primary) !important;
}
@media (max-width: 900px) { .njhw-featured-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .njhw-featured-cards { grid-template-columns: 1fr; } }

/* --- MEET DR. BERBERIAN --- */
.njhw-provider-section {
    padding: 4rem 1.5rem !important;
    background: #FFFFFF !important;
}
.njhw-provider-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.njhw-provider-name {
    color: var(--njhw-secondary) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 1.5rem !important;
}
.njhw-provider-body {
    color: var(--njhw-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}
.njhw-provider-body p { margin-bottom: 1rem; }


.njhw-provider-image { width: 100%; border-radius: 4px; display: block; }
@media (max-width: 800px) {
    .njhw-provider-inner { grid-template-columns: 1fr; }
    .njhw-provider-image { max-width: 350px; margin: 0 auto; }
}

/* --- 3 PROVIDER QUALITIES --- */
.njhw-qualities-section {
    padding: 3rem 1.5rem 4rem !important;
    background: #FFFFFF !important;
}
.njhw-qualities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.njhw-quality__icon {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    display: block;
}
.njhw-quality__title {
    color: var(--njhw-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}
@media (max-width: 600px) {
    .njhw-qualities-grid { gap: 1rem; }
    .njhw-quality__icon { width: 44px; height: 44px; }
    .njhw-quality__title { font-size: 0.75rem; }
}


/* --- End global button override --- */

/* --- Featured cards (Spectra containers now, not raw HTML) --- */
.wp-block-uagb-container.njhw-featured-cards {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1340px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    flex-direction: initial !important;
}
.wp-block-uagb-container.njhw-featured-card {
    background: #FFFFFF !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    max-width: none !important;
}
.njhw-featured-card > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}
.njhw-featured-card .njhw-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.njhw-featured-card .njhw-card-category {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--njhw-primary) !important;
    text-align: center;
    margin: 1rem 0 0.5rem !important;
}
.njhw-featured-card .njhw-card-title .uagb-heading-text {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--njhw-secondary) !important;
    text-align: center !important;
    margin: 0 0 0.5rem !important;
    line-height: 1.3 !important;
}
.njhw-featured-card .njhw-card-subtitle {
    color: var(--njhw-primary) !important;
    text-align: center !important;
    margin: 0 0 0.75rem !important;
    font-size: 0.9375rem !important;
}
.njhw-featured-card .njhw-card-body {
    color: var(--njhw-secondary) !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin: 0 0 1.25rem !important;
    flex-grow: 1 !important;
}
.njhw-featured-card .njhw-card-cta {
    text-align: center !important;
    margin: auto 0 0 !important;
    padding-top: 0.5rem;
}

@media (max-width: 900px) {
    .wp-block-uagb-container.njhw-featured-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .wp-block-uagb-container.njhw-featured-cards { grid-template-columns: 1fr !important; }
}
/* --- End featured cards --- */


/* ============================================================
   Location pages — hero, care, team, map, testimonial, about
   Each section is a Spectra root container + inner boxed container.
   ============================================================ */

/* --- Container band reset for location sections --- */
.wp-block-uagb-container.njhw-location-hero-section,
.wp-block-uagb-container.njhw-location-care-section,
.wp-block-uagb-container.njhw-location-team-section,
.wp-block-uagb-container.njhw-location-map-section,
.wp-block-uagb-container.njhw-location-testimonial-section,
.wp-block-uagb-container.njhw-location-about-section {
    display: block;
    padding: 0;
    width: 100%;
    max-width: none;
}

/* --- Location hero — dark band with city name + address + phone --- */
.wp-block-uagb-container.njhw-location-hero-section {
    background: var(--njhw-primary) !important;
    padding: 4rem 1.5rem 3rem !important;
    text-align: center;
}
.njhw-location-hero-section .njhw-location-hero-title .uagb-heading-text {
    color: #FFFFFF !important;
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 1rem !important;
}
.njhw-location-hero-section .njhw-location-address,
.njhw-location-hero-section .njhw-location-phone {
    color: #FFFFFF !important;
    font-size: 1.125rem;
    margin: 0.25rem 0 !important;
}
.njhw-location-hero-section .njhw-location-phone a {
    color: var(--njhw-tertiary) !important;
    text-decoration: none;
    font-weight: 700;
}
.njhw-location-hero-section .njhw-location-phone a:hover { color: #FFFFFF !important; }

/* --- Care section --- */
.wp-block-uagb-container.njhw-location-care-section {
    padding: 3.5rem 1.5rem !important;
    background: #FFFFFF !important;
    text-align: center;
}
.njhw-location-care-section .njhw-section-title .uagb-heading-text {
    color: var(--njhw-secondary) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 1.5rem !important;
}
.njhw-location-care-section p {
    color: var(--njhw-secondary) !important;
    max-width: 780px;
    margin: 0 auto !important;
    line-height: 1.7;
    font-size: 1rem;
}

/* --- Team section — 3-column grid of names --- */
.wp-block-uagb-container.njhw-location-team-section {
    padding: 3rem 1.5rem !important;
    background: var(--njhw-tertiary) !important;
}
.njhw-location-team-section .njhw-section-title .uagb-heading-text {
    color: var(--njhw-primary) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    margin: 0 0 2rem !important;
}
.njhw-team-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem 2rem !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    list-style: none !important;
    padding: 0 !important;
}
.njhw-team-item {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}
.njhw-team-item a {
    color: var(--njhw-secondary) !important;
    font-weight: 700;
    text-decoration: none;
}
.njhw-team-item a:hover { color: var(--njhw-primary) !important; text-decoration: underline; }
.njhw-team-note {
    color: var(--njhw-primary);
    font-weight: 500;
    font-size: 0.875rem;
}
@media (max-width: 800px) { .njhw-team-list { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .njhw-team-list { grid-template-columns: 1fr !important; } }

/* --- Map section --- */
.wp-block-uagb-container.njhw-location-map-section {
    padding: 2rem 1.5rem !important;
    background: #FFFFFF !important;
}
.njhw-location-map {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.njhw-location-map iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 450px !important;
    border: 0;
    display: block;
    border-radius: 4px;
}
@media (max-width: 768px) { .njhw-location-map iframe { height: 340px !important; } }

/* --- Testimonial --- */
.wp-block-uagb-container.njhw-location-testimonial-section {
    padding: 4rem 1.5rem !important;
    background: #F5F7F7 !important;
    text-align: center;
}
.njhw-location-testimonial-section .njhw-section-title .uagb-heading-text {
    color: var(--njhw-secondary) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 1.5rem !important;
}
.njhw-testimonial-quote {
    max-width: 820px;
    margin: 0 auto 1.5rem;
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 6px;
    border-left: 4px solid var(--njhw-primary);
}
.njhw-testimonial-body {
    color: var(--njhw-secondary) !important;
    font-size: 1.0625rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 1rem !important;
}
.njhw-testimonial-author {
    color: var(--njhw-primary);
    font-weight: 700;
    font-style: normal;
    display: block;
}

/* --- Location About --- */
.wp-block-uagb-container.njhw-location-about-section {
    padding: 4rem 1.5rem !important;
    background: #FFFFFF !important;
    text-align: center;
}
.njhw-location-about-section .njhw-section-title .uagb-heading-text {
    color: var(--njhw-secondary) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 1.5rem !important;
}
.njhw-location-about-section p {
    color: var(--njhw-secondary) !important;
    max-width: 780px;
    margin: 0 auto 1.25rem !important;
    line-height: 1.7;
    font-size: 1rem;
}

/* --- End location pages --- */

/* --- Provider Qualities (Spectra containers now) — 3-icon row --- */
.wp-block-uagb-container.njhw-qualities-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    flex-direction: initial !important;
}
.wp-block-uagb-container.njhw-quality {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 0 !important;
    text-align: center;
    max-width: none !important;
}
.wp-block-uagb-container.njhw-quality .njhw-quality__icon {
    margin: 0 auto 1rem !important;
}
.wp-block-uagb-container.njhw-quality .njhw-quality__icon img {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
}
.wp-block-uagb-container.njhw-quality .njhw-quality__title {
    color: var(--njhw-secondary) !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-transform: capitalize !important;
    text-align: center !important;
}
@media (max-width: 600px) {
    .wp-block-uagb-container.njhw-qualities-grid { gap: 1rem !important; }
    .wp-block-uagb-container.njhw-quality .njhw-quality__icon img { width: 44px; height: 44px; }
    .wp-block-uagb-container.njhw-quality .njhw-quality__title { font-size: 0.75rem !important; }
}
/* --- End Spectra qualities --- */


/* --- Card CTA button centering — Spectra buttons uses flex, needs justify-content --- */
.njhw-featured-card .wp-block-uagb-buttons.njhw-card-cta {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 0.5rem !important;
}
.njhw-featured-card .wp-block-uagb-buttons.njhw-card-cta .wp-block-uagb-buttons-child {
    margin: 0 auto !important;
}
/* --- End card CTA centering --- */


/* --- Location page inner containers — force block so content stacks vertically
       (Spectra containers default to flex row which causes children to lay out
       horizontally). --- */
.wp-block-uagb-container.njhw-location-hero-inner,
.wp-block-uagb-container.njhw-location-care-inner,
.wp-block-uagb-container.njhw-location-team-inner,
.wp-block-uagb-container.njhw-location-map-inner,
.wp-block-uagb-container.njhw-location-testimonial-inner,
.wp-block-uagb-container.njhw-location-about-inner {
    display: block !important;
    flex-direction: initial !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
/* --- End location inner containers --- */



/* --- About: additive tweaks only. Block-level attrs handle layout, bg, padding, min-height. --- */

/* Hero ellipse curve on the bottom of the gray band. clip-path is on the allowed
   additive list because Spectra has no block attr for it. Prod uses these values. */
.wp-block-uagb-container.njhw-about-hero-section {
    -webkit-clip-path: ellipse(80% 100% at 50% 0);
    clip-path: ellipse(80% 100% at 50% 0);
    overflow: hidden;
}
@media (max-width: 768px) {
    .wp-block-uagb-container.njhw-about-hero-section {
        -webkit-clip-path: ellipse(120% 100% at 50% 0);
        clip-path: ellipse(120% 100% at 50% 0);
    }
}

/* Heading + subheading in the gray band must be white and centered even when the
   Astra palette is broken. Once astra-settings gets rebuilt this stays consistent
   because the block attrs also carry the same intent. */
.njhw-round-header__heading .uagb-heading-text {
    color: #FFFFFF;
    text-align: center;
    font-size: 2.75rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.njhw-round-header__subheading {
    color: #FFFFFF;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.95;
}
@media (max-width: 768px) {
    .njhw-round-header__heading .uagb-heading-text { font-size: 2rem; }
}


/* Down-arrow SVG in hero (wp:html — no Spectra icon block equivalent) */
.njhw-round-header__arrow {
    display: flex;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0.85;
    margin: 1.5rem auto 0;
}
.njhw-round-header__arrow svg { width: 32px; height: 32px; }

/* Provider section — bio (60%) left, image (40%) right on desktop, stack on mobile */
.njhw-about-provider-inner {
    gap: 3rem !important;
    align-items: center !important;
}
.njhw-about-provider-body { flex: 1 1 55% !important; }
.njhw-about-provider-image-wrap { flex: 1 1 40% !important; }
.njhw-about-provider-image-wrap .wp-block-uagb-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.njhw-about-provider-name .uagb-heading-text {
    color: var(--njhw-secondary);
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.njhw-about-provider-cta .wp-block-uagb-buttons-child .uagb-button__link {
    letter-spacing: 0.05em;
}
@media (max-width: 900px) {
    .njhw-about-provider-body,
    .njhw-about-provider-image-wrap { flex: 1 1 100% !important; }
}
/* --- End About additive --- */

/* --- Meet the Team: layout owned by child theme because Spectra's per-block
       CSS generator does not reliably emit flex-direction / gap / width rules
       for containers introduced via wp-cli post updates. --- */

/* Hero: primary bg + 80vh minheight + image band on top + clip-path curve.
   Mirrors what About's hero achieves via Spectra block attrs, but explicit here
   because Spectra didn't emit these rules for wp-cli-introduced blocks. */
.wp-block-uagb-container.njhw-team-hero-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 80vh !important;
    padding: 0 !important;
    background: var(--njhw-primary, #626D73) !important;
    -webkit-clip-path: ellipse(80% 100% at 50% 0);
    clip-path: ellipse(80% 100% at 50% 0);
    overflow: hidden !important;
}
/* Image band = the empty child container with background-image set */
.njhw-team-hero-section .wp-block-uagb-container:first-child {
    min-height: 60vh !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-image: url('https://njhwllc.com/wp-content/uploads/2021/06/Meet_The_Team_Featured.jpg') !important;
    padding: 0 !important;
}
/* Text band = the second child container holding heading + arrow */
.wp-block-uagb-container.njhw-round-header__content {
    padding: 2rem 1.5rem 3rem !important;
    margin: 0 auto !important;
    text-align: center !important;
}
.njhw-round-header__heading .uagb-heading-text {
    color: #FFFFFF !important;
    font-size: 2.75rem !important;
    line-height: 1.2 !important;
    margin: 0 0 1rem !important;
    text-align: center !important;
}
.njhw-round-header__arrow {
    display: flex !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    opacity: 0.85 !important;
    margin: 1rem auto 0 !important;
}
.njhw-round-header__arrow svg { width: 32px; height: 32px; }
@media (max-width: 768px) {
    .wp-block-uagb-container.njhw-team-hero-section {
        -webkit-clip-path: ellipse(120% 100% at 50% 0);
        clip-path: ellipse(120% 100% at 50% 0);
    }
    .njhw-round-header__heading .uagb-heading-text { font-size: 2rem !important; }
    .njhw-team-hero-section .wp-block-uagb-container:first-child { min-height: 45vh !important; }
}

/* Featured provider row: photo LEFT (40%) / bio RIGHT (55%) side-by-side */
.wp-block-uagb-container.njhw-team-provider-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3rem !important;
    padding: 3rem 1.5rem 4rem !important;
}
.wp-block-uagb-container.njhw-team-provider-image-wrap {
    flex: 1 1 40% !important;
    max-width: 40% !important;
}
.wp-block-uagb-container.njhw-team-provider-body {
    flex: 1 1 55% !important;
    max-width: 55% !important;
}
.njhw-team-provider-image-wrap .wp-block-uagb-image__figure {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
}
.njhw-team-provider-image-wrap .wp-block-uagb-image__figure img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}
.njhw-team-provider-name .uagb-heading-text {
    color: var(--njhw-secondary, #293B3B);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}
@media (max-width: 900px) {
    .wp-block-uagb-container.njhw-team-provider-image-wrap,
    .wp-block-uagb-container.njhw-team-provider-body {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Team grid: 3-column responsive */
.wp-block-uagb-container.njhw-team-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 2rem !important;
    padding: 3rem 1.5rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.wp-block-uagb-container.njhw-team-card {
    flex: 0 1 calc(33.333% - 1.34rem) !important;
    max-width: calc(33.333% - 1.34rem) !important;
    min-width: 260px !important;
    padding: 1rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.njhw-team-card .wp-block-uagb-image__figure {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem !important;
}
.njhw-team-card .wp-block-uagb-image__figure img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/5 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin: 0 !important;
}
.njhw-team-card__name .uagb-heading-text {
    color: var(--njhw-secondary, #293B3B) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.25rem !important;
    text-align: center !important;
}
.njhw-team-card__credential {
    color: var(--njhw-primary, #626D73) !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-align: center !important;
}
@media (max-width: 900px) {
    .wp-block-uagb-container.njhw-team-card {
        flex: 0 1 calc(50% - 1rem) !important;
        max-width: calc(50% - 1rem) !important;
    }
}
@media (max-width: 560px) {
    .wp-block-uagb-container.njhw-team-card {
        flex: 0 1 100% !important;
        max-width: 400px !important;
    }
}

/* Constrain the alignfull sections back to theme content width — Spectra
   didn't emit max-width on the inner containers for these wp-cli-created blocks */
.wp-block-uagb-container.njhw-team-provider-section,
.wp-block-uagb-container.njhw-team-grid-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.wp-block-uagb-container.njhw-team-provider-inner,
.wp-block-uagb-container.njhw-team-grid {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Team CTA buttons: center in card, small size, pushed to bottom via flex */
.wp-block-uagb-buttons.njhw-team-card__cta,
.wp-block-uagb-buttons.njhw-team-provider-cta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 1rem auto 0 !important;
}
.wp-block-uagb-buttons.njhw-team-card__cta .uagb-buttons__wrap,
.wp-block-uagb-buttons.njhw-team-provider-cta .uagb-buttons__wrap {
    justify-content: center !important;
    width: 100% !important;
}
/* Card gets flex column so button pushes to bottom regardless of credential text length */
.wp-block-uagb-container.njhw-team-card {
    justify-content: flex-start !important;
}
.wp-block-uagb-container.njhw-team-card .wp-block-uagb-buttons.njhw-team-card__cta {
    margin-top: auto !important;
    padding-top: 0.75rem !important;
}

/* --- End Meet the Team --- */

/* --- Contact page: hero + form section --- */

/* Hero: solid gray band, centered heading + subheading, no image band */
.wp-block-uagb-container.njhw-contact-hero-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: var(--njhw-primary, #626D73) !important;
    min-height: 30vh !important;
    padding: 3rem 1.5rem !important;
    text-align: center !important;
}
.njhw-contact-hero-section .njhw-round-header__content {
    max-width: 900px !important;
    margin: 0 auto !important;
    background: transparent !important;
    text-align: center !important;
    padding: 0 !important;
}
.njhw-contact-hero-section .njhw-round-header__heading .uagb-heading-text {
    color: #FFFFFF !important;
    font-size: 2.75rem !important;
    line-height: 1.2 !important;
    margin: 0 0 1rem !important;
    text-align: center !important;
}
.njhw-contact-subheading {
    color: #FFFFFF !important;
    font-size: 1.0625rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.njhw-contact-subheading a {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}
@media (max-width: 768px) {
    .njhw-contact-hero-section .njhw-round-header__heading .uagb-heading-text { font-size: 2rem !important; }
}

/* Form section: constrain to reasonable reading width, add breathing room */
.wp-block-uagb-container.njhw-contact-form-section {
    padding: 4rem 1.5rem !important;
    background: #FFFFFF !important;
}
.wp-block-uagb-container.njhw-contact-form-inner {
    max-width: 720px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.njhw-contact-form-inner > p {
    margin-bottom: 2rem !important;
    color: var(--njhw-secondary, #293B3B);
}

/* Gravity Forms styling — brand-consistent */
.njhw-contact-form-inner .gform_wrapper {
    max-width: 100%;
    margin: 0 auto;
}
.njhw-contact-form-inner .gform_wrapper .gfield {
    margin-bottom: 1.25rem;
}
.njhw-contact-form-inner .gform_wrapper .gfield_label {
    font-weight: 600;
    color: var(--njhw-secondary, #293B3B);
    margin-bottom: 0.4rem;
    display: block;
}
.njhw-contact-form-inner .gform_wrapper input[type="text"],
.njhw-contact-form-inner .gform_wrapper input[type="email"],
.njhw-contact-form-inner .gform_wrapper input[type="tel"],
.njhw-contact-form-inner .gform_wrapper select,
.njhw-contact-form-inner .gform_wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.4;
}
.njhw-contact-form-inner .gform_wrapper textarea { min-height: 140px; }
.njhw-contact-form-inner .gform_wrapper .gform_footer,
.njhw-contact-form-inner .gform_footer {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 1.5rem !important;
}
.njhw-contact-form-inner .gform_footer input[type="submit"],
.njhw-contact-form-inner .gform_footer button[type="submit"],
.njhw-contact-form-inner input.gform_button {
    background: var(--njhw-primary, #626D73) !important;
    color: #FFFFFF !important;
    border: 2px solid var(--njhw-primary, #626D73) !important;
    padding: 0.85rem 2.5rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    height: auto !important;
    font-size: 0.9375rem !important;
}
.njhw-contact-form-inner .gform_footer input[type="submit"]:hover,
.njhw-contact-form-inner .gform_footer button[type="submit"]:hover,
.njhw-contact-form-inner input.gform_button:hover {
    background: #FFFFFF !important;
    color: var(--njhw-primary, #626D73) !important;
}
/* --- End Contact page --- */

/* --- Contact page: Gravity Forms dropdown padding (default was too tight) --- */
.njhw-contact-form-inner .gform_wrapper select {
    padding: 0.5rem !important;
}

/* --- Header nav: Contact CTA button (menu item with .button custom class) --- */
/* The menu item was tagged with a custom "button" class in the WP admin menu editor.
   Style it as a pill-shaped secondary button matching the rest of the site's button spec. */
/* Zero out the parent LI's background — Astra adds a near-black bg on menu-item
   that shows through around the pill as a dark ring. Kill it. */
.main-header-menu .menu-item.button,
#ast-desktop-header .menu-item.button {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    align-self: center !important;
}
.main-header-menu .menu-item.button > .menu-link,
#ast-desktop-header .menu-item.button > .menu-link {
    background: #12BECE !important;
    color: #FFFFFF !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    padding: 0.35rem 1.5rem !important;
    margin-left: 0.5rem !important;
    text-transform: uppercase !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.3 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}
.main-header-menu .menu-item.button > .menu-link:hover,
.main-header-menu .menu-item.button > .menu-link:focus,
#ast-desktop-header .menu-item.button > .menu-link:hover,
#ast-desktop-header .menu-item.button > .menu-link:focus {
    background: #0FA8B6 !important;
    color: #FFFFFF !important;
    border-color: #0FA8B6 !important;
    outline: none !important;
}
.main-header-menu .menu-item.button.current-menu-item > .menu-link,
#ast-desktop-header .menu-item.button.current-menu-item > .menu-link {
    background: #0FA8B6 !important;
    color: #FFFFFF !important;
    border-color: #0FA8B6 !important;
}

/* --- Insurance page: content section styling --- */
.wp-block-uagb-container.njhw-insurance-content-section {
    padding: 4rem 1.5rem !important;
    background: #FFFFFF !important;
}
.wp-block-uagb-container.njhw-insurance-content-inner {
    max-width: 720px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
.njhw-insurance-content-inner .njhw-insurance-subhead .uagb-heading-text {
    color: var(--njhw-secondary, #293B3B) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 2.5rem 0 1rem !important;
    text-align: center !important;
}
.njhw-insurance-content-inner p {
    line-height: 1.6 !important;
}
.wp-block-uagb-buttons.njhw-insurance-cta {
    display: flex !important;
    justify-content: center !important;
    margin-top: 2.5rem !important;
    width: 100% !important;
}
.wp-block-uagb-buttons.njhw-insurance-cta .uagb-buttons__wrap {
    justify-content: center !important;
    width: 100% !important;
}
/* --- End Insurance --- */

/* --- FAQ page: content + accordion styling --- */
.wp-block-uagb-container.njhw-faq-content-section {
    padding: 4rem 1.5rem !important;
    background: #FFFFFF !important;
}
.wp-block-uagb-container.njhw-faq-content-inner {
    max-width: 820px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.njhw-faq-item {
    border-bottom: 1px solid #E5E5E5 !important;
    padding: 1.25rem 0 !important;
    margin: 0 !important;
}
.njhw-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--njhw-secondary, #293B3B);
    padding-right: 2rem;
    position: relative;
    list-style: none;
    line-height: 1.4;
}
.njhw-faq-item summary::-webkit-details-marker { display: none; }
.njhw-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: #12BECE;
    transition: transform 0.2s ease;
}
.njhw-faq-item[open] summary::after {
    content: "\2212"; /* minus sign */
}
.njhw-faq-item summary:hover {
    color: #12BECE;
}
.njhw-faq-item > p {
    margin: 1rem 0 0 !important;
    line-height: 1.6;
    color: var(--njhw-primary, #626D73);
}
/* --- End FAQ page --- */

/* --- RankMath FAQ block as accordion (preserves FAQPage JSON-LD schema) --- */
#rank-math-faq.rank-math-block .rank-math-list,
.wp-block-rank-math-faq-block .rank-math-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
#rank-math-faq.rank-math-block .rank-math-list-item,
.wp-block-rank-math-faq-block .rank-math-list-item {
    border-bottom: 1px solid #E5E5E5;
    padding: 1.25rem 0;
    list-style: none;
}
/* Question row (RankMath uses h3 by default per our titleWrapper attr) */
#rank-math-faq.rank-math-block .rank-math-question,
.wp-block-rank-math-faq-block .rank-math-question {
    font-weight: 600 !important;
    font-size: 1.0625rem !important;
    color: var(--njhw-secondary, #293B3B) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
    user-select: none;
    transition: color 0.2s ease;
}
#rank-math-faq.rank-math-block .rank-math-question:hover,
.wp-block-rank-math-faq-block .rank-math-question:hover {
    color: #12BECE !important;
}
/* +/- indicator via ::after */
#rank-math-faq.rank-math-block .rank-math-question::after,
.wp-block-rank-math-faq-block .rank-math-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: #12BECE;
    transition: transform 0.2s ease;
}
#rank-math-faq.rank-math-block .rank-math-list-item.is-open .rank-math-question::after,
.wp-block-rank-math-faq-block .rank-math-list-item.is-open .rank-math-question::after {
    content: "\2212"; /* minus sign */
}
/* Answer body — collapsed by default, expand when parent has .is-open */
#rank-math-faq.rank-math-block .rank-math-answer,
.wp-block-rank-math-faq-block .rank-math-answer {
    max-height: 0;
    overflow: hidden;
    margin: 0 !important;
    transition: max-height 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
    color: var(--njhw-primary, #626D73);
    line-height: 1.6;
}
#rank-math-faq.rank-math-block .rank-math-list-item.is-open .rank-math-answer,
.wp-block-rank-math-faq-block .rank-math-list-item.is-open .rank-math-answer {
    max-height: 2000px;
    margin-top: 0.75rem !important;
}
#rank-math-faq.rank-math-block .rank-math-answer p,
.wp-block-rank-math-faq-block .rank-math-answer p {
    margin: 0 0 0.75rem !important;
    line-height: 1.6;
    color: var(--njhw-primary, #626D73);
}
#rank-math-faq.rank-math-block .rank-math-answer p:last-child,
.wp-block-rank-math-faq-block .rank-math-answer p:last-child { margin-bottom: 0 !important; }
#rank-math-faq.rank-math-block .rank-math-answer a,
.wp-block-rank-math-faq-block .rank-math-answer a {
    color: #12BECE;
    text-decoration: underline;
}
#rank-math-faq.rank-math-block .rank-math-answer a:hover,
.wp-block-rank-math-faq-block .rank-math-answer a:hover {
    color: #0FA8B6;
}
/* Focus state for keyboard users */
#rank-math-faq.rank-math-block .rank-math-question:focus-visible,
.wp-block-rank-math-faq-block .rank-math-question:focus-visible {
    outline: 2px solid #12BECE;
    outline-offset: 4px;
}
/* --- End RankMath FAQ accordion --- */

/* --- Policies & Procedures page --- */
.wp-block-uagb-container.njhw-policies-content-section {
    padding: 4rem 1.5rem !important;
    background: #FFFFFF !important;
}
.wp-block-uagb-container.njhw-policies-content-inner {
    max-width: 820px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.njhw-policies-content-inner .njhw-policies-heading .uagb-heading-text {
    color: var(--njhw-secondary, #293B3B) !important;
    margin: 2.5rem 0 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.njhw-policies-content-inner .njhw-policies-heading .uagb-heading-text[class*="h2"],
.njhw-policies-content-inner .njhw-policies-heading h2.uagb-heading-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}
.njhw-policies-content-inner .njhw-policies-heading h3.uagb-heading-text {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}
.njhw-policies-content-inner p {
    line-height: 1.7 !important;
    margin: 0 0 1rem !important;
}
.njhw-policies-content-inner > *:first-child {
    margin-top: 0 !important;
}
/* --- End Policies --- */

/* --- Footer newsletter widget --- */
.njhw-footer-newsletter-heading {
    color: var(--njhw-secondary, #293B3B) !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.75rem !important;
}
.footer-widget-area .gform_wrapper .gfield_label {
    display: none !important;
}
.footer-widget-area .gform_wrapper input[type="text"],
.footer-widget-area .gform_wrapper input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}
.footer-widget-area .gform_wrapper .gform_footer {
    padding-top: 0.25rem !important;
    margin: 0 !important;
}
.footer-widget-area .gform_wrapper .gform_footer input[type="submit"] {
    background: #12BECE !important;
    color: #FFFFFF !important;
    border: 0 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    font-size: 0.875rem !important;
    width: auto !important;
    height: auto !important;
}
.footer-widget-area .gform_wrapper .gform_footer input[type="submit"]:hover {
    background: #0FA8B6 !important;
}
/* Constrain gfield spacing in footer */
.footer-widget-area .gform_wrapper .gfield {
    margin-bottom: 0.5rem !important;
}


/* Newsletter footer form: kill the huge default grid row-gap between fields */
.footer-widget-area .gform_wrapper .gform_fields {
    row-gap: 0.5rem !important;
    grid-row-gap: 0.5rem !important;
}
.footer-widget-area .gform_wrapper .gfield {
    margin-bottom: 0 !important;
}

/* --- End Footer newsletter --- */



/* --- Service child pages: content section styling --- */
.wp-block-uagb-container.njhw-service-content-section {
    padding: 3rem 1.5rem !important;
    background: #FFFFFF !important;
}
.wp-block-uagb-container.njhw-service-content-inner {
    max-width: 820px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}
.njhw-service-content-inner p {
    line-height: 1.7 !important;
    margin: 0 0 1rem !important;
}
.njhw-service-content-inner h2,
.njhw-service-content-inner h3,
.njhw-service-content-inner h4 {
    color: var(--njhw-secondary, #293B3B) !important;
    margin: 2rem 0 1rem !important;
}
.njhw-service-content-inner ul,
.njhw-service-content-inner ol {
    margin: 0 0 1rem 1.5rem !important;
    line-height: 1.7 !important;
}
/* --- End Service child pages --- */

/* --- Testimonials page --- */
.wp-block-uagb-container.njhw-testimonials-section {
    padding: 4rem 1.5rem !important;
    background: #F7F8F9 !important;
}
.wp-block-uagb-container.njhw-testimonials-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.wp-block-uagb-container.njhw-testimonials-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    max-width: 100% !important;
}
.wp-block-uagb-container.njhw-testimonial-card {
    flex: 0 1 calc(50% - 0.75rem) !important;
    max-width: calc(50% - 0.75rem) !important;
    min-width: 300px !important;
    background: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    border-top: 4px solid #12BECE !important;
    display: flex !important;
    flex-direction: column !important;
}
.njhw-testimonial-card__quote {
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
    color: var(--njhw-secondary, #293B3B) !important;
    font-weight: 500 !important;
    font-style: italic !important;
    margin: 0 0 1rem !important;
}
.njhw-testimonial-card__body {
    color: var(--njhw-primary, #626D73) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    font-size: 0.9375rem !important;
}
@media (max-width: 720px) {
    .wp-block-uagb-container.njhw-testimonial-card { flex: 0 1 100% !important; max-width: 100% !important; }
}
/* --- End Testimonials --- */

/* --- Services overview page (prod-matched tab-filtered list) --- */

/* Hero */
.wp-block-uagb-container.njhw-services-hero-section {
    background: var(--njhw-primary, #626D73) !important;
    padding: 3rem 1.5rem 0 !important;
    min-height: 45vh !important;
}
.njhw-services-hero-inner {
    max-width: 1300px !important;
    margin: 0 auto !important;
    background: transparent !important;
    padding: 0 !important;
}
.njhw-services-h1 .uagb-heading-text {
    color: #FFFFFF !important;
    font-size: 2.25rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin: 0 0 1rem !important;
    text-align: center !important;
}
.njhw-services-subhead {
    color: #FFFFFF !important;
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto 1.5rem !important;
    line-height: 1.6 !important;
}
.njhw-services-cta {
    text-align: center;
    margin-bottom: 2rem;
}
.njhw-services-cta__btn {
    display: inline-block;
    background: rgba(255,255,255,0.35);
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    transition: background 0.2s ease;
    font-size: 0.875rem;
}
.njhw-services-cta__btn:hover {
    background: rgba(255,255,255,0.5);
    color: #FFFFFF;
}

/* Tab bar — wider and taller per Sean's spec */
.njhw-services-tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 1rem;
    margin-bottom: -1px;
}
.njhw-services-tab {
    flex: 1 1 0;
    min-height: 180px;
    background: transparent;
    color: #FFFFFF;
    border: 0;
    padding: 1.5rem 0.75rem 1.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.njhw-services-tab svg {
    width: 44px;
    height: 44px;
    opacity: 0.85;
    flex-shrink: 0;
}
.njhw-services-tab span:not(.njhw-services-tab__caret) {
    display: block;
    max-width: 220px;
}
.njhw-services-tab__caret {
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-top: -0.25rem;
}
.njhw-services-tab.is-active {
    background: #FFFFFF;
    color: var(--njhw-secondary, #293B3B);
}
.njhw-services-tab.is-active svg {
    opacity: 1;
}
.njhw-services-tab.is-active .njhw-services-tab__caret {
    opacity: 1;
    color: var(--njhw-secondary, #293B3B);
}
.njhw-services-tab:hover:not(.is-active) {
    background: rgba(255,255,255,0.1);
}

/* Service list section */
.wp-block-uagb-container.njhw-services-list-section {
    padding: 3rem 1.5rem 4rem !important;
    background: #FFFFFF !important;
}
.wp-block-uagb-container.njhw-services-list-inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
}
.njhw-services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 1.5rem;
}
.njhw-services-item {
    display: block;
    text-decoration: none;
    color: var(--njhw-secondary, #293B3B);
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(0,0,0,0.15);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.njhw-services-item__title {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
}
.njhw-services-item:hover {
    color: #12BECE;
    border-bottom-color: #12BECE;
}
/* Filtering */
.njhw-services-list[data-active-cat="behavioral-health"] .njhw-services-item:not([data-cats~="behavioral-health"]),
.njhw-services-list[data-active-cat="nutrition-wellness"] .njhw-services-item:not([data-cats~="nutrition-wellness"]),
.njhw-services-list[data-active-cat="family-adolescent"] .njhw-services-item:not([data-cats~="family-adolescent"]) {
    display: none;
}

@media (max-width: 900px) {
    .njhw-services-tab {
        min-height: 140px;
        font-size: 1.1rem;
    }
    .njhw-services-tab svg { width: 36px; height: 36px; }
}
@media (max-width: 720px) {
    .njhw-services-list { grid-template-columns: 1fr; column-gap: 0; }
    .njhw-services-tabs { flex-wrap: wrap; }
    .njhw-services-tab { flex: 1 1 50%; min-height: 120px; }
    .njhw-services-item__title { font-size: 1.125rem; }
}
/* --- End Services overview --- */
