/*
 * familyFIRST redesign: shared core.
 * Loaded before ff-a.css or ff-b.css. It holds the brand palette, the accessible
 * shades derived from it, accessibility behaviour, and fixes for third-party
 * widgets (Zoho form, Google search). Everything that gives an option its look
 * lives in the theme file.
 */

:root {
    /* Brand palette, from "FF_New colours.pdf" */
    --espresso: #2D1F17;
    --warm-white: #FFFFFF;
    --sage: #859F7D;
    --terracotta: #C96F56;
    --dusty-blue: #7CA5C7;
    --sand: #EDE8DF;
    --soft-beige: #D6C6B6;
    --dusty-pink: #E4C7C3;
    --soft-lavender: #E8DFF7;

    /* Same hues, deepened until text passes WCAG AA (4.5:1) on white and on sand.
       The brand originals are for fills, shapes and large graphics only. */
    --sage-ink: #566D4F;
    --sage-deep: #3A5734;       /* 7.7:1 AAA contrast with white text */
    --terracotta-ink: #A74B32;
    --blue-ink: #3C6B93;

    /* Text */
    --text: #2D1F17;
    --text-soft: #625751;       /* 7.0:1 on white, 5.7:1 on sand */

    /* Quiet panel tints (espresso text on all of these is above 10:1) */
    --sage-tint: #E4EBE1;
    --blue-tint: #E4EDF5;
    --pink-tint: #F4E8E5;
    --lavender-tint: #F1ECFB;
    --beige-tint: #F3EDE7;
    --sand-deep: #E3DBCF;
    --terracotta-tint: #E7D2C6;   /* terracotta mixed into sand: clay, not blush */

    /* Form field outlines need 3:1 against the page (WCAG 1.4.11) */
    --field-border: #928376;    /* 3.7:1 on white, 3.0 on sand */

    --container: 1200px;
    --field-speed: 0.8;         /* colour field drift, see js/ff-motion.js */
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 84px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

figure {
    margin: 0;
}

h1, h2, h3, h4 {
    text-wrap: balance;
    overflow-wrap: break-word;
}

p, li {
    text-wrap: pretty;
}

/* Very small phones: let a long word wrap rather than push the page sideways */
@media (max-width: 360px) {
    h1, h2 {
        overflow-wrap: anywhere;
    }
}

/* Tablets: the sibling-services menu moves below the page content */
@media (max-width: 991.98px) {
    .service-details .row > .col-md-9,
    .service-details .row > .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .service-details .row > .col-md-9 {
        padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    }

    .service-details .row > .col-md-3 {
        position: static !important;
        margin-top: 44px !important;
    }
}

/* Footer credit link: large enough to tap */
@media (max-width: 767px) {
    .site-footer .copy a {
        display: inline-block;
        padding: 12px 0;
    }
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.container {
    max-width: calc(var(--container) + 2 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.ff-icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    vertical-align: -0.25em;
}

/* ---------- Accessibility ---------- */

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--espresso);
    color: var(--warm-white);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: var(--warm-white);
}

#main {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--espresso);
    outline-offset: 3px;
}

.site-footer :focus-visible,
.on-dark :focus-visible {
    outline-color: var(--warm-white);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Header basics ---------- */

.site-header .navbar {
    padding: 0;
}

.site-header .navbar-toggler {
    border: 0;
    box-shadow: none;
    padding: 8px;
    color: var(--espresso);
    border-radius: 10px;
}

.site-header .navbar-toggler .ff-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.site-header .navbar-toggler .ico-close,
.site-header .navbar-toggler[aria-expanded="true"] .ico-open {
    display: none;
}

.site-header .navbar-toggler[aria-expanded="true"] .ico-close {
    display: inline-block;
}

.site-header .nav-link {
    white-space: nowrap;
}

.logo img,
.navbar-brand img,
.site-header .logo img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
}

.logo:hover img,
.logo:focus-visible img,
.navbar-brand:hover img,
.navbar-brand:focus-visible img {
    opacity: 1;
    filter: none;
}

/* Hero picture pairs: one source per breakpoint */
.banner-mob-only {
    display: none;
}

@media (max-width: 767px) {
    .banner-desk-only {
        display: none;
    }

    .banner-mob-only {
        display: block;
    }
}

/* Pages whose banner has no image (profiles, privacy, 404) */
.banner:not(:has(> img)) {
    display: none;
}

/* The Nurses section is empty (profiles commented out); keep its anchor, drop its space */
.our-team .container > section:not(:has(.list)) {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0;
}

.our-team .container > section:not(:has(.list))::after {
    display: none !important;
}

/* ---------- Google Custom Search box ---------- */

.header-search .gsc-control-cse {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-family: inherit !important;
}

.header-search form.gsc-search-box,
.header-search table.gsc-search-box {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
}

.header-search table.gsc-search-box td.gsc-input {
    padding: 0 !important;
}

.header-search .gsc-input-box {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 48px 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid var(--soft-beige) !important;
    background: var(--warm-white) !important;
    box-shadow: none !important;
}

.header-search .gsc-input-box table {
    width: 100%;
}

.header-search .gsib_a {
    padding: 0 !important;
    background: none !important;
}

.header-search .gsib_b {
    display: none;
}

.header-search input.gsc-input {
    background: transparent !important;
    font-size: 16px !important;
    color: var(--espresso) !important;
    font-family: inherit !important;
}

.header-search input.gsc-input::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

/* The CSE button collapses inside its table cell; Enter submits, and the
   magnifier sits inside the field as the visual cue. */
.header-search td.gsc-search-button {
    display: none !important;
}

.header-search .gsc-input-box {
    padding-left: 42px !important;
    padding-right: 16px !important;
    background: var(--warm-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%232D1F17' d='M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z'/%3E%3C/svg%3E") 16px center / 17px no-repeat !important;
}

.gsc-results-wrapper-overlay {
    border-radius: 16px !important;
}

/* ---------- Floating contact actions: open/close mechanics ---------- */

.contact-actions {
    position: fixed;
    z-index: 1040;
}

.contact-actions .action {
    position: relative;
}

.contact-actions .action-btn,
.contact-actions .btn1 a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.contact-actions .action-btn .ff-icon,
.contact-actions .btn1 a .ff-icon {
    width: 24px;
    height: 24px;
}

.contact-actions .dropdown {
    position: absolute;
    display: none;
    white-space: nowrap;
    z-index: 10;
}

.contact-actions .dropdown.open {
    display: block;
}

.contact-actions .menu-item a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

/* ---------- Zoho appointment form: restack to labels-above-fields ---------- */

.home-form-main #crmWebToEntityForm {
    background: transparent !important;
    color: var(--text) !important;
    padding: 0 !important;
    max-width: none !important;
    font-family: var(--font-body) !important;
}

.home-form-main #crmWebToEntityForm .zcwf_title {
    padding: 0 0 14px !important;
    color: var(--text-soft) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.home-form-main .zcwf_row {
    margin: 0 0 16px !important;
}

.home-form-main .zcwf_row::after {
    content: "";
    display: table;
    clear: both;
}

.home-form-main .zcwf_col_lab {
    width: 100% !important;
    float: none !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    min-height: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 0.9375rem !important;
    font-weight: 600;
    color: var(--text) !important;
}

.home-form-main .zcwf_col_lab:empty {
    display: none;
}

.home-form-main .zcwf_col_lab label span {
    color: var(--terracotta-ink) !important;
    margin-left: 2px;
}

.home-form-main .zcwf_col_fld {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home-form-main .zcwf_col_help {
    display: none !important;
}

.home-form-main #crmWebToEntityForm .zcwf_col_fld input[type=text],
.home-form-main #crmWebToEntityForm .zcwf_col_fld textarea,
.home-form-main #crmWebToEntityForm .zcwf_col_fld_slt {
    display: block;
    width: 100% !important;
    float: none !important;
    min-height: 50px;
    padding: 12px 16px !important;
    border: 1px solid var(--field-border) !important;
    border-radius: var(--field-radius, 12px) !important;
    background: var(--field-bg, var(--warm-white)) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    line-height: 1.4;
    transition: border-color 0.15s ease;
}

.home-form-main #crmWebToEntityForm .zcwf_col_fld textarea {
    min-height: 120px;
}

.home-form-main #crmWebToEntityForm .zcwf_col_fld input[type=text]:focus,
.home-form-main #crmWebToEntityForm .zcwf_col_fld textarea:focus,
.home-form-main #crmWebToEntityForm .zcwf_col_fld_slt:focus {
    border-color: var(--espresso) !important;
    outline: 2px solid var(--espresso);
    outline-offset: 1px;
}

.home-form-main .zcwf_button {
    width: auto !important;
    max-width: none !important;
    min-height: 48px;
    cursor: pointer;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.home-form-main .formsubmit.zcwf_button {
    padding: 12px 30px !important;
    border: 0 !important;
    border-radius: var(--btn-radius, 999px) !important;
    background: var(--terracotta-ink) !important;
    color: var(--warm-white) !important;
}

.home-form-main .formsubmit.zcwf_button:hover {
    background: var(--espresso) !important;
}

.home-form-main input[type=reset].zcwf_button {
    margin-left: 14px !important;
    padding: 12px 6px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--text-soft) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Modal (Zoho form) ---------- */

.modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 0;
    padding: 22px 26px 0;
}

.modal-body.home-form-main {
    padding: 12px 26px 26px !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.modal-body.home-form-main iframe {
    display: block;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border: 0;
}

/* The modal already has its own title, so the form's repeated "Contact Us" is dropped here only. */
#exampleModal #crmWebToEntityForm .zcwf_title {
    display: none !important;
}

/* Keep the header in view and let the field list scroll on its own, rather than the whole page. */
#exampleModal .modal-content {
    max-height: min(88vh, 760px);
    overflow: hidden;
}

#exampleModal .modal-header {
    flex: none;
    padding-bottom: 14px;
}

#exampleModal .modal-body.home-form-main {
    min-height: 0;
    padding-top: 0 !important;
    overflow-y: auto;
}

@media (min-width: 576px) {
    #exampleModal .modal-dialog {
        max-width: 640px;
    }

    /* Pair short fields (name, mobile/email) two-up; message and buttons stay full width. */
    #exampleModal #crmWebToEntityForm form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    #exampleModal #crmWebToEntityForm form > * {
        grid-column: 1 / -1;
    }

    #exampleModal #crmWebToEntityForm form > .zcwf_row:not(:has(textarea)):not(:has(.zcwf_button)) {
        grid-column: auto;
    }
}

/* Phones: the form opens as a full-width sheet rising from the bottom edge */
@media (max-width: 575.98px) {
    #exampleModal .modal-dialog {
        display: flex;
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    #exampleModal .modal-content {
        width: 100%;
        max-height: 92vh;
        max-height: 92svh;
        border-radius: 26px 26px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -12px 40px rgba(45, 31, 23, 0.18);
    }

    #exampleModal .modal-header {
        position: relative;
        padding: 26px 22px 14px;
    }

    /* A small handle so the sheet reads as a sheet */
    #exampleModal .modal-header::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--soft-beige);
        transform: translateX(-50%);
    }

    #exampleModal .modal-title {
        color: #76513B;
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: -0.01em;
    }

    #exampleModal .modal-body.home-form-main {
        padding: 4px 22px 26px !important;
    }

    #exampleModal #crmWebToEntityForm form {
        column-gap: 12px;
    }

    #exampleModal .zcwf_row {
        margin: 0 0 12px !important;
    }

    #exampleModal #crmWebToEntityForm .zcwf_col_fld input[type=text],
    #exampleModal #crmWebToEntityForm .zcwf_col_fld_slt {
        min-height: 52px;
    }

    #exampleModal #crmWebToEntityForm .zcwf_col_fld textarea {
        min-height: 110px;
    }

    #exampleModal .zcwf_col_fld:has(.formsubmit) {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 6px !important;
    }

    #exampleModal .formsubmit.zcwf_button {
        flex: 1;
        min-height: 52px;
    }

    #exampleModal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #exampleModal.show .modal-dialog {
        transform: none;
    }
}

@media (max-width: 575.98px) and (prefers-reduced-motion: reduce) {
    #exampleModal.fade .modal-dialog {
        transition: none;
    }
}

/* ---------- Tables and accordion defaults used by articles ---------- */

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232D1F17' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232D1F17' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:focus-visible {
    outline: 2px solid var(--espresso);
    outline-offset: -2px;
}

.blog-table-wrap {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .blog-table-wrap {
        box-shadow: inset -14px 0 10px -10px rgba(45, 31, 23, 0.22);
    }

    .blog-detail-table th:first-child,
    .blog-detail-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: var(--warm-white);
        box-shadow: 1px 0 0 var(--sand-deep);
    }

    .blog-detail-table thead th:first-child {
        background: var(--sand);
    }
}

/* ---------- Google search results in the site's type and colours ---------- */

.gsc-control-cse,
.gsc-control-cse .gsc-table-result,
.gsc-results-wrapper-overlay,
.gsc-results-wrapper-overlay * {
    font-family: var(--font-body) !important;
}

.gsc-results-wrapper-overlay .gs-title,
.gsc-results-wrapper-overlay .gs-title *,
.gsc-results-wrapper-overlay a.gs-title:link {
    color: var(--espresso) !important;
    text-decoration-color: var(--soft-beige) !important;
}

.gsc-results-wrapper-overlay .gs-visibleUrl,
.gsc-results-wrapper-overlay .gs-visibleUrl-long {
    color: var(--sage-ink) !important;
}

.gsc-results-wrapper-overlay .gs-snippet {
    color: var(--text-soft) !important;
}

.gsc-results-wrapper-overlay .gsc-cursor-page {
    color: var(--espresso) !important;
}

.gsc-results-wrapper-overlay .gsc-cursor-current-page {
    color: var(--terracotta-ink) !important;
}

/* Crisis and safety information (mental health article) */
.items-list li.crisis-note {
    margin: 10px 0;
    padding: 16px 18px 16px 22px;
    border-radius: 14px;
    background: var(--terracotta-tint);
    box-shadow: inset 4px 0 0 var(--terracotta);
}

.items-list li.crisis-note::before {
    display: none;
}

/* ---------- Design review switch (remove after sign-off) ---------- */

.ff-review {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1060;
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: var(--espresso);
    box-shadow: 0 6px 24px rgba(45, 31, 23, 0.25);
    font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ff-review button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: transparent;
    color: var(--sand);
    cursor: pointer;
}

.ff-review button[aria-pressed="true"] {
    background: var(--warm-white);
    color: var(--espresso);
}

@media (max-width: 767px) {
    .ff-review {
        bottom: 82px;
        left: 12px;
    }
}

/* ---------- Motion (driven by js/ff-motion.js) ---------- */

/* The drifting colour field sits behind its panel's content */
.field-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.field-canvas {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.field-canvas.is-on {
    opacity: 1;
}

.field-live {
    background-image: none !important;
}

/* Blocks ease up into place the first time they scroll into view */
.rv {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease var(--rv-delay, 0ms), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-delay, 0ms);
}

.rv.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce), print {
    .rv {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .field-canvas {
        transition: none;
    }

    .home-visual-slider img {
        transition: none;
    }
}

/* Hero headline: each line rises out of its own mask, then the subtext.
   ff-lines is only set when motion is allowed; the fallback animation
   shows the heading anyway if the script never runs. */
.ff-lines .home-hero-shade h1,
.ff-lines .home-hero-shade h1 ~ p {
    opacity: 0;
    animation: hl-fallback 0s 2.5s forwards;
}

@keyframes hl-fallback { to { opacity: 1; } }

.hl-line {
    display: block;
    overflow: hidden;
    padding-bottom: .12em;
    margin-bottom: -.12em;
}

.hl-line > span {
    display: inline-block;
    animation: hl-rise .9s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes hl-rise {
    from { opacity: 0; transform: translateY(105%); }
    60% { opacity: 1; }
    to { opacity: 1; transform: none; }
}

.hl-sub {
    animation: hl-sub .8s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes hl-sub {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}


/* GLOBAL INNER PAGE BANNER TEXT ALIGNMENT */

.banner.team-hero .banner_cont .container {
    padding-left: clamp(40px, 6vw, 100px) !important;
    padding-right: clamp(24px, 4vw, 40px) !important;
}

@media (max-width: 767px) {
    .banner.team-hero .banner_cont .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

/* =============================================
   COLLABORATE PAGE ONLY - moved from collaborate.php
   ============================================= */
/* familyFIRST - COLLABORATE REVAMP V2 */
.ff-collab-page {
    --espresso: #2D1F17;
    --sage: #859F7D;
    --terracotta: #C96F56;
    --blue: #7CA5C7;
    --sand: #EDE8DF;
    --beige: #D6C6B6;
    --pink: #E4C7C3;
    --lavender: #E8DFF7;
    color: var(--espresso);
}

.ff-collab-page * {
    box-sizing: border-box;
}

/* INTRO: EDITORIAL LAYOUT */

.ff-collab-story {
    padding: clamp(65px, 8vw, 110px) 0;
    background: #FFFFFF;
}

.ff-collab-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(35px, 6vw, 90px);
    align-items: center;
}

.ff-collab-story-content {
    max-width: 570px;
}

.ff-collab-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9B513F;
    margin-bottom: 22px;
}

.ff-collab-story h2 {
    /* font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1.16;
    letter-spacing: -.025em;
    font-weight: 600; */
    color: var(--espresso);
    margin: 0 0 30px;
    /* color: #76513b; */
    /* letter-spacing: -.025em;
    margin: 0; */
  
    /* margin: 0; */
    /* font-size: clamp(1.7rem, 2.6vw, 2.4rem); */
}

.ff-collab-story p {
    font-size: 16px;
    line-height: 1.9;
    color: #665F59;
    margin: 0 0 20px;
}

.ff-collab-story p:last-child {
    margin-bottom: 0;
}

.ff-collab-photo {
    position: relative;
    margin: 0;
    padding: 0 0 24px 24px;
}

.ff-collab-photo::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 79%;
    height: 73%;
    background: #EDE8DF;
    border-radius: 12px;
}

.ff-collab-photo img {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

/* COLLABORATION METHODS */

.ff-collab-methods {
    padding: clamp(70px, 8vw, 115px) 0;
    background: var(--sand);
}

.ff-collab-methods-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.ff-collab-methods-heading h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.2;
   
    color: #76513b;
    letter-spacing: -.025em;
    margin: 0;
}

.ff-collab-heading-rule {
    height: 3px;
    width: 90px;
    background: var(--terracotta);
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* UNNUMBERED EDITORIAL LIST */

.ff-collab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(30px, 6vw, 90px);
    row-gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ff-collab-list li {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-content: start;
    padding: 32px 0;
    margin: 0;
    border-top: 1px solid #CDBFB0;
}

.ff-collab-list li::before,
.ff-collab-list li::after {
    content: none !important;
}
.ff-collab-item h3 {
    color: var(--espresso);
    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px;
}

.ff-collab-item p {
    color: #665F59;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* FINAL STATEMENT */

.ff-collab-ending {
    padding: clamp(65px, 8vw, 105px) 0;
    background: var(--sage);
}

.ff-collab-ending-inner {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.ff-collab-ending-label {
    color: var(--espresso);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.ff-collab-ending p {
    color: var(--espresso);
    font-size: clamp(22px, 2.6vw, 35px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.015em;
    margin: 0;
}

/* TABLET */

@media (max-width: 991px) {
    .ff-collab-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ff-collab-story-content {
        max-width: 100%;
    }

    .ff-collab-photo img {
        aspect-ratio: 16 / 10;
    }

    .ff-collab-ending-inner {
        gap: 30px;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .ff-collab-story {
        padding: 55px 0;
    }

    .ff-collab-story h2 {
        font-size: 32px;
    }

    .ff-collab-photo {
        padding: 0 0 16px 16px;
    }

    .ff-collab-photo img {
        aspect-ratio: 4 / 3;
    }

    .ff-collab-methods {
        padding: 60px 0;
    }

    .ff-collab-methods-heading {
        margin-bottom: 30px;
    }

    .ff-collab-heading-rule {
        display: none;
    }

    .ff-collab-list {
        grid-template-columns: 1fr;
    }

    .ff-collab-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 25px 0;
    }

    .ff-collab-ending {
        padding: 60px 0;
    }

    .ff-collab-ending-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ff-collab-ending p {
        font-size: 23px;
    }
}


/* =========================================
   COLLABORATE - REFINED CLOSING SECTION
   ========================================= */

.ff-collab-ending {
    background: #EDE8DF;
    padding: 85px 0;
}

.ff-collab-ending-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    align-items: start;
    gap: clamp(40px, 6vw, 100px);
    max-width: 1120px;
    margin: 0 auto;
}

/* LEFT SIDE */

.ff-collab-ending-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 8px;
}

.ff-ending-accent {
    display: block;
    width: 45px;
    height: 3px;
    background: #C96F56;
}

.ff-collab-ending-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #76513B;
    margin: 0;
    max-width: 220px;
}

/* RIGHT SIDE */

.ff-collab-ending-content p {
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: #2D1F17;
    margin: 0;
    max-width: 760px;
}

/* TABLET */

@media (max-width: 991px) {
    .ff-collab-ending {
        padding: 65px 0;
    }

    .ff-collab-ending-inner {
        grid-template-columns: 1fr 1.5fr;
        gap: 35px;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .ff-collab-ending {
        padding: 55px 0;
    }

    .ff-collab-ending-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ff-collab-ending-heading {
        gap: 12px;
        padding-top: 0;
    }

    .ff-collab-ending-content p {
        font-size: 20px;
        line-height: 1.7;
    }
}


/* COLLABORATION HEADING + DESCRIPTION */

.ff-collab-methods-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.ff-collab-heading-content {
    max-width: 850px;
}

.ff-collab-methods-heading h2 {
    margin-bottom: 20px;
}

.ff-collab-methods-description {
    font-size: 17px;
    line-height: 1.85;
    font-weight: 400;
    color: #665F59;
    margin: 0;
}

@media (max-width: 680px) {
    .ff-collab-methods-heading {
        margin-bottom: 30px;
    }

    .ff-collab-methods-description {
        font-size: 16px;
        line-height: 1.75;
    }
}

/* Collaborate page: site-wide banner style without affecting other pages */
body.collaborate-refresh .ff-collab-page .banner.team-hero h1,
/* Collaborate page: site-wide banner style without affecting other pages */
body.collaborate-refresh .ff-collab-page .banner.team-hero p.ff-banner-title {
    color: #76513B !important;
    -webkit-text-fill-color: #76513B !important;
}

/* Closing paragraph follows the collaboration methods */
.ff-collab-page .ff-collab-methods > .container > .ff-collab-methods-description {
    max-width: 950px;
    margin: 36px 0 0;
}

/* COLLABORATE: DESCRIPTION ABOVE THE UNNUMBERED METHODS */
.ff-collab-page .ff-collab-methods-heading .ff-collab-methods-description {
    max-width: 850px;
    margin: 18px 0 0;
}

/* COLLABORATE: WHY familyFIRST */
.ff-collab-page .ff-collab-why {
    padding: clamp(55px, 7vw, 90px) 0;
    background: #fff;
}
.ff-collab-page .ff-collab-why h2 {
    margin: 0 0 32px;
    color: #76513B;
    font-size: clamp(28px, 3vw, 38px);
    /* font-weight: 600; */
}
.ff-collab-page .ff-collab-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.ff-collab-page .ff-collab-why-grid li {
    padding: 24px 0;
    margin: 0;
    border-top: 1px solid #D6C6B6;
    list-style: none;
}
.ff-collab-page .ff-collab-why-grid li::before,
.ff-collab-page .ff-collab-why-grid li::after { content: none !important; }
.ff-collab-page .ff-collab-why-grid h3 {
    margin: 0 0 12px;
    color: #76513B;
    font-size: 21px;
    font-weight: 600;
}
.ff-collab-page .ff-collab-why-grid p {
    margin: 0;
    color: #665F59;
    font-size: 16px;
    line-height: 1.8;
}
@media (max-width: 767px) {
    .ff-collab-page .ff-collab-why-grid { grid-template-columns: 1fr; gap: 0; }
    .ff-collab-page .ff-collab-why-grid li { padding: 20px 0; }
}


/* ==========================================
   familyFIRST - CONTACT PAGE
   ========================================== */

body.contact-refresh {
    background-color: #F1ECE3 !important;
}

/* CONTACT PAGE VARIABLES */

.ff-contact-page {
    --ff-espresso: #2D1F17;
    --ff-brown: #76513B;
    --ff-sage: #859F7D;
    --ff-terracotta: #C96F56;
    --ff-sand: #EDE8DF;
    --ff-beige: #D6C6B6;
    --ff-muted: #665F59;

    color: var(--ff-espresso);
}

.ff-contact-page *,
.ff-contact-page *::before,
.ff-contact-page *::after {
    box-sizing: border-box;
}

/* ==========================================
   BANNER
   ========================================== */

body.contact-refresh
.ff-contact-page .banner.team-hero h1,
/* ==========================================
   BANNER
   ========================================== */

body.contact-refresh
.ff-contact-page .banner.team-hero p.ff-banner-title {
    color: #76513B !important;
    -webkit-text-fill-color: #76513B !important;
}

/* ==========================================
   CONTACT DETAILS + FORM SECTION
   ========================================== */

.ff-contact-page .ff-contact-redesign {
    padding: 95px 0;
    background: #FFFFFF;
}

.ff-contact-page .ff-contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

/* LEFT CONTENT */

.ff-contact-page .ff-contact-details {
    min-width: 0;
    padding: 25px 0;
}

.ff-contact-page .ff-contact-details h2 {
    margin: 0 0 48px;
    color: #76513B;
    font-size: clamp(32px, 3.5vw, 48px);
    /* font-weight: 600; */
    line-height: 1.2;
}

.ff-contact-page .ff-detail-item {
    margin-bottom: 30px;
    padding: 0 0 28px;
    border-bottom: 1px solid #EDE8DF;
}

.ff-contact-page .ff-detail-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.ff-contact-page .ff-detail-item h3 {
    margin: 0 0 12px;
    color: #2D1F17;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.ff-contact-page .ff-detail-item p {
    margin: 0;
    color: #665F59;
    font-size: 17px;
    line-height: 1.9;
}

.ff-contact-page .ff-detail-item a {
    color: #2D1F17;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ff-contact-page .ff-detail-item a:hover {
    color: #C96F56;
}

/* ==========================================
   ZOHO APPOINTMENT FORM
   ========================================== */

.ff-contact-page .ff-zoho-form {
    width: 100%;
    min-width: 0;
    padding: 38px;
    background: #F7F4EF;
    border: 1px solid #EDE8DF;
    border-radius: 14px;
    overflow: visible;
}

/* ZOHO FORM WRAPPER */

.ff-contact-page .ff-zoho-form form,
.ff-contact-page .ff-zoho-form .crmWebToEntityForm,
.ff-contact-page .ff-zoho-form #crmWebToEntityForm {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* REMOVE FIXED WIDTHS */

.ff-contact-page .ff-zoho-form .zcwf_lblLeft,
.ff-contact-page .ff-zoho-form .zcwf_lblRight {
    width: 100% !important;
    max-width: 100% !important;
}

/* HIDE DUPLICATE FORM HEADING */

.ff-contact-page .ff-zoho-form .zcwf_title {
    display: none !important;
}

/* FORM ROWS */

.ff-contact-page .ff-zoho-form .zcwf_row {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;

    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
}

/* LABEL CONTAINERS */

.ff-contact-page .ff-zoho-form .zcwf_col_lab {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* LABEL TEXT */

.ff-contact-page .ff-zoho-form .zcwf_col_lab label {
    color: #2D1F17 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
}

/* FIELD WRAPPERS */

.ff-contact-page .ff-zoho-form .zcwf_col_fld {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* INPUT FIELDS */

.ff-contact-page .ff-zoho-form
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]),
.ff-contact-page .ff-zoho-form select,
.ff-contact-page .ff-zoho-form textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 48px !important;
    padding: 12px 14px !important;

    background: #FFFFFF !important;
    border: 1px solid #D6C6B6 !important;
    border-radius: 7px !important;

    color: #2D1F17 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;

    box-sizing: border-box !important;
    box-shadow: none !important;
}

/* TEXTAREA */

.ff-contact-page .ff-zoho-form textarea {
    height: auto !important;
    min-height: 120px !important;
    resize: vertical;
}

/* FOCUS */

.ff-contact-page .ff-zoho-form input:focus,
.ff-contact-page .ff-zoho-form select:focus,
.ff-contact-page .ff-zoho-form textarea:focus {
    border-color: #859F7D !important;
    outline: 2px solid rgba(133,159,125,.22) !important;
    outline-offset: 0;
}

/* SUBMIT BUTTON */

.ff-contact-page .ff-zoho-form input[type="submit"],
.ff-contact-page .ff-zoho-form button[type="submit"],
.ff-contact-page .ff-zoho-form .formsubmit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 28px !important;

    background: #76513B !important;
    color: #FFFFFF !important;

    border: 1px solid #76513B !important;
    border-radius: 7px !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.ff-contact-page .ff-zoho-form input[type="submit"]:hover,
.ff-contact-page .ff-zoho-form button[type="submit"]:hover {
    background: #2D1F17 !important;
    border-color: #2D1F17 !important;
}

/* RESET BUTTON */

.ff-contact-page .ff-zoho-form input[type="reset"],
.ff-contact-page .ff-zoho-form button[type="reset"] {
    min-height: 48px;
    padding: 12px 20px !important;

    background: transparent !important;
    color: #76513B !important;

    border: 1px solid #D6C6B6 !important;
    border-radius: 7px !important;

    font-size: 14px !important;
    cursor: pointer;
}

/* HIDDEN FORM FIELDS */

.ff-contact-page .ff-zoho-form input[type="hidden"],
.ff-contact-page .ff-zoho-form input[hidden],
.ff-contact-page .ff-zoho-form [hidden] {
    display: none !important;
}

/* IFRAME FALLBACK */

.ff-contact-page .ff-zoho-form iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 550px;
    border: 0;
}

/* ==========================================
   LOCATION / MAP
   ========================================== */

.ff-contact-page .ff-contact-location {
    padding: 85px 0 105px;
    background: #EDE8DF;
}

.ff-contact-page .ff-location-heading {
    margin-bottom: 30px;
}

.ff-contact-page .ff-location-heading h2 {
    margin: 0;
    color: #2D1F17;
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.25;
}

.ff-contact-page .ff-contact-map-new {
    height: 430px;
    padding: 10px;

    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
}

.ff-contact-page .ff-contact-map-new iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 991px) {

    .ff-contact-page .ff-contact-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 680px) {

    .ff-contact-page .ff-contact-redesign {
        padding: 55px 0;
    }

    .ff-contact-page .ff-contact-details {
        padding: 0;
    }

    .ff-contact-page .ff-contact-details h2 {
        margin-bottom: 30px;
    }

    .ff-contact-page .ff-detail-item h3 {
        font-size: 20px;
    }

    .ff-contact-page .ff-detail-item p {
        font-size: 16px;
    }

    .ff-contact-page .ff-zoho-form {
        padding: 24px 18px;
    }

    .ff-contact-page .ff-zoho-form iframe {
        min-height: 650px;
    }

    .ff-contact-page .ff-contact-location {
        padding: 55px 0 70px;
    }

    .ff-contact-page .ff-contact-map-new {
        height: 320px;
        padding: 6px;
    }

}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .ff-contact-page .ff-detail-item a {
        transition: none;
    }

}

/* ==========================================
   familyFIRST - JOIN US PAGE
   ========================================== */

body.join-us-refresh {
    background-color: #F1ECE3 !important;
}

/* PAGE VARIABLES */

.ff-join-page {
    --espresso: #2D1F17;
    --sage: #859F7D;
    --terracotta: #C96F56;
    --blue: #7CA5C7;
    --sand: #EDE8DF;
    --beige: #D6C6B6;
    --pink: #E4C7C3;
    --lavender: #E8DFF7;

    color: var(--espresso);
}

.ff-join-page *,
.ff-join-page *::before,
.ff-join-page *::after {
    box-sizing: border-box;
}

/* ==========================================
   BANNER
   ========================================== */

body.join-us-refresh .ff-join-page .banner.team-hero h1,
/* ==========================================
   BANNER
   ========================================== */

body.join-us-refresh .ff-join-page .banner.team-hero p.ff-banner-title {
    color: #76513B !important;
    -webkit-text-fill-color: #76513B !important;
}

/* ==========================================
   SHARED SECTION HEADINGS
   ========================================== */

body.join-us-refresh .ff-join-page .ff-join-intro h2,
body.join-us-refresh .ff-join-page .ff-join-section-heading,
body.join-us-refresh .ff-join-page .ff-join-requirements h2,
body.join-us-refresh .ff-join-page .ff-join-privacy h2,
body.join-us-refresh .ff-join-page .ff-join-apply h2 {
    color: #76513B !important;
    font-family: inherit;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: normal;
}

/* ==========================================
   INTRODUCTION
   ========================================== */

.ff-join-page .ff-join-intro {
    padding: clamp(65px, 8vw, 110px) 0;
    background: #FFFFFF;
}

.ff-join-page .ff-join-intro-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.05fr);
    gap: clamp(35px, 6vw, 90px);
    /* align-items: center; */
}

.ff-join-page .ff-join-intro-content {
    min-width: 0;
}

.ff-join-page .ff-join-intro h2 {
    margin: 0 0 28px;
}

.ff-join-page .ff-join-intro p {
    margin: 0;
    color: #665F59;
    font-size: 17px;
    line-height: 1.85;
}

/* INTRO IMAGE */

.ff-join-page .ff-join-photo {
    position: relative;
    margin: 0;
    padding: 0 0 20px 20px;
}

.ff-join-page .ff-join-photo::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 79%;
    height: 73%;
    background: var(--sand);
    border-radius: 12px;
}

.ff-join-page .ff-join-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

/* ==========================================
   WHY familyFIRST
   ========================================== */

.ff-join-page .ff-join-why {
    padding: clamp(65px, 8vw, 105px) 0;
    background: var(--sand);
}

.ff-join-page .ff-join-section-heading {
    margin: 0 0 38px;
}

.ff-join-page .ff-join-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-join-page .ff-join-benefits li {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-join-page .ff-join-benefits li::before,
.ff-join-page .ff-join-benefits li::after {
    content: none !important;
}

/* BENEFIT CARDS */

.ff-join-page .ff-join-benefit {
    height: 100%;
    min-height: 190px;
    padding: 30px;
    border: 1px solid rgba(45, 31, 23, .06);
    border-radius: 12px;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

/* CARD COLOURS */

.ff-join-page .ff-join-benefits li:nth-child(5n+1)
.ff-join-benefit {
    background: #EDF2EA;
}

.ff-join-page .ff-join-benefits li:nth-child(5n+2)
.ff-join-benefit {
    background: #EAF1F7;
}

.ff-join-page .ff-join-benefits li:nth-child(5n+3)
.ff-join-benefit {
    background: #F5E8E6;
}

.ff-join-page .ff-join-benefits li:nth-child(5n+4)
.ff-join-benefit {
    background: var(--lavender);
}

.ff-join-page .ff-join-benefits li:nth-child(5n+5)
.ff-join-benefit {
    background: #FFFFFF;
}

.ff-join-page .ff-join-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(45, 31, 23, .07);
}

/* CARD ACCENT */

.ff-join-page .ff-join-benefit-mark {
    display: block;
    width: 40px;
    height: 3px;
    margin-bottom: 25px;
    background: var(--terracotta);
}

/* CARD TEXT */

.ff-join-page .ff-join-benefit p {
    margin: 0;
    color: var(--espresso);
    font-size: 16px;
    line-height: 1.75;
}

.ff-join-page .ff-join-benefit strong {
    color: var(--espresso);
}

/* ==========================================
   WHAT WE'RE LOOKING FOR
   ========================================== */

.ff-join-page .ff-join-requirements {
    padding: clamp(70px, 8vw, 110px) 0;
    background: #FFFFFF;
}

.ff-join-page .ff-join-requirements-layout {
    display: grid;
    grid-template-columns:
        minmax(0, .75fr)
        minmax(0, 1.25fr);
    gap: clamp(35px, 6vw, 90px);
    align-items: start;
}

.ff-join-page .ff-join-requirements h2 {
    margin: 0 0 22px;
}

/* HEADING ACCENT */

.ff-join-page .ff-join-accent {
    display: block;
    width: 65px;
    height: 3px;
    background: var(--terracotta);
}

/* UNNUMBERED REQUIREMENTS LIST */

.ff-join-page .ff-join-requirements-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-join-page .ff-join-requirements-list li {
    display: block;
    margin: 0;
    padding: 25px 0;
    border-top: 1px solid var(--sand);
    list-style: none;
}

.ff-join-page .ff-join-requirements-list li:last-child {
    border-bottom: 1px solid var(--sand);
}

.ff-join-page .ff-join-requirements-list li::before,
.ff-join-page .ff-join-requirements-list li::after {
    content: none !important;
}

.ff-join-page .ff-join-requirements-list p {
    margin: 0;
    color: var(--espresso);
    font-size: 18px;
    line-height: 1.65;
}

/* ==========================================
   EQUAL OPPORTUNITY & PRIVACY
   ========================================== */

.ff-join-page .ff-join-privacy {
    padding: clamp(55px, 7vw, 85px) 0;
    background: #EDF2EA;
}

.ff-join-page .ff-join-privacy-layout {
    display: grid;
    grid-template-columns:
        minmax(0, .7fr)
        minmax(0, 1.3fr);
    gap: clamp(30px, 5vw, 75px);
    align-items: start;
}

.ff-join-page .ff-join-privacy h2 {
    margin: 0;
}

.ff-join-page .ff-join-privacy p {
    margin: 0;
    color: var(--espresso);
    font-size: 17px;
    line-height: 1.85;
}

/* ==========================================
   HOW TO APPLY
   ========================================== */

.ff-join-page .ff-join-apply {
    padding: clamp(70px, 8vw, 110px) 0;
    background: #FFFFFF;
}

.ff-join-page .ff-join-apply-inner {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.ff-join-page .ff-join-apply-line {
    display: block;
    width: 65px;
    height: 3px;
    margin: 0 auto 28px;
    background: var(--terracotta);
}

.ff-join-page .ff-join-apply h2 {
    margin: 0 0 25px;
}

.ff-join-page .ff-join-apply p {
    margin: 0 0 22px;
    color: #665F59;
    font-size: 17px;
    line-height: 1.85;
}

.ff-join-page .ff-join-apply a {
    color: #9B513F;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ff-join-page .ff-join-apply p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 991px) {

    .ff-join-page .ff-join-intro-layout,
    .ff-join-page .ff-join-requirements-layout,
    .ff-join-page .ff-join-privacy-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .ff-join-page .ff-join-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ff-join-page .ff-join-photo img {
        aspect-ratio: 16 / 10;
    }

}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 680px) {

    .ff-join-page .ff-join-intro,
    .ff-join-page .ff-join-why,
    .ff-join-page .ff-join-requirements,
    .ff-join-page .ff-join-privacy,
    .ff-join-page .ff-join-apply {
        padding: 55px 0;
    }

    .ff-join-page .ff-join-intro p,
    .ff-join-page .ff-join-privacy p,
    .ff-join-page .ff-join-apply p {
        font-size: 16px;
    }

    .ff-join-page .ff-join-photo {
        padding: 0 0 15px 15px;
    }

    .ff-join-page .ff-join-photo img {
        aspect-ratio: 4 / 3;
    }

    .ff-join-page .ff-join-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ff-join-page .ff-join-benefit {
        min-height: 0;
        padding: 26px;
    }

    .ff-join-page .ff-join-requirements-list li {
        padding: 22px 0;
    }

    .ff-join-page .ff-join-requirements-list p {
        font-size: 16px;
    }

}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .ff-join-page .ff-join-benefit {
        transition: none;
    }

}

/* Privacy Policy page: extracted from privacy-policy.php */
/* =====================================
           familyFIRST - PRIVACY POLICY REVAMP
           ===================================== */

                         body.privacy-refresh {
    background-color: #F1ECE3 !important;
}

        .ff-privacy-page {
            --ff-espresso: #2D1F17;
            --ff-heading: #76513B;
            --ff-sage: #859F7D;
            --ff-terracotta: #C96F56;
            --ff-sand: #EDE8DF;
            --ff-beige: #D6C6B6;
            --ff-muted: #665F59;

            color: var(--ff-espresso);
        }

        .ff-privacy-page *,
        .ff-privacy-page *::before,
        .ff-privacy-page *::after {
            box-sizing: border-box;
        }

        /* EXACT TEAM BANNER STYLING */

        body.privacy-refresh
        .ff-privacy-page .banner.team-hero h1,
/* EXACT TEAM BANNER STYLING */

        body.privacy-refresh
        .ff-privacy-page .banner.team-hero p.ff-banner-title {
            color: #76513B !important;
            -webkit-text-fill-color: #76513B !important;
        }

        /* INTRODUCTION */

        .ff-privacy-intro {
            padding: clamp(55px, 7vw, 95px) 0;
            background: var(--ff-sand);
        }

        .ff-privacy-intro-inner {
            max-width: 1050px;
            margin: 0 auto;
        }

        .ff-privacy-intro h2,
.ff-privacy-intro h1 {
            font-size: clamp(1.7rem, 2.6vw, 2.4rem);
            line-height: 1.2;
            font-weight: 600;
            color: var(--ff-heading);
            margin: 0 0 15px;
        }

        .ff-privacy-subtitle {
            font-size: 17px;
            line-height: 1.7;
            color: var(--ff-muted);
            margin: 0 0 25px;
        }

        .ff-privacy-date {
            display: inline-block;
            padding: 10px 18px;
            border-radius: 6px;
            background: #FFFFFF;
            color: var(--ff-espresso);
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 30px;
        }

        .ff-privacy-intro-copy {
            font-size: 17px;
            line-height: 1.9;
            color: var(--ff-muted);
            margin: 0;
            max-width: 1000px;
        }

        /* MAIN POLICY LAYOUT */

        .ff-privacy-main {
            padding: clamp(65px, 8vw, 110px) 0;
            background: #FFFFFF;
        }

        .ff-privacy-layout {
            display: grid;
            grid-template-columns:
                minmax(220px, 270px)
                minmax(0, 1fr);
            gap: clamp(40px, 6vw, 95px);
            align-items: start;
        }

        /* STICKY NAVIGATION */

        .ff-privacy-sidebar {
            position: sticky;
            top: 110px;
            padding: 28px 24px;
            background: #F7F4EF;
            border: 1px solid var(--ff-sand);
            border-radius: 12px;
        }

        .ff-privacy-sidebar h2 {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--ff-heading);
            margin: 0 0 22px;
        }

        .ff-privacy-nav {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .ff-privacy-nav a {
            display: block;
            padding: 10px 0;
            color: var(--ff-muted);
            font-size: 14px;
            line-height: 1.5;
            text-decoration: none;
            border-bottom: 1px solid #E5DED5;
            transition: color .2s ease;
        }

        .ff-privacy-nav a:last-child {
            border-bottom: none;
        }

        .ff-privacy-nav a:hover,
        .ff-privacy-nav a:focus-visible {
            color: var(--ff-heading);
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        /* POLICY CONTENT */

        .ff-privacy-content {
            min-width: 0;
        }

        .ff-privacy-section {
            padding: 0 0 42px;
            margin: 0 0 45px;
            border-bottom: 1px solid var(--ff-sand);
            scroll-margin-top: 115px;
        }

        .ff-privacy-section:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .ff-privacy-section-heading {
            display: flex;
            align-items: baseline;
            gap: 18px;
            margin-bottom: 23px;
        }

        .ff-privacy-section h2 {
            font-size: clamp(1.5rem, 2.2vw, 2rem);
            font-weight: 600;
            line-height: 1.3;
            color: var(--ff-heading);
            margin: 0;
        }

        .ff-privacy-section h3 {
            font-size: 17px;
            font-weight: 500;
            line-height: 1.7;
            color: var(--ff-espresso);
            margin: 0 0 18px;
        }

        .ff-privacy-section p {
            font-size: 16px;
            line-height: 1.85;
            color: var(--ff-muted);
            margin: 0 0 17px;
        }

        .ff-privacy-section p:last-child {
            margin-bottom: 0;
        }

        /* LISTS */

        .ff-privacy-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .ff-privacy-list li {
            position: relative;
            padding: 0 0 0 24px;
            margin: 0 0 15px;
            font-size: 16px;
            line-height: 1.85;
            color: var(--ff-muted);
            list-style: none;
        }

        .ff-privacy-list li:last-child {
            margin-bottom: 0;
        }

        .ff-privacy-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 12px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--ff-sage);
        }

        .ff-privacy-list li::after {
            content: none !important;
        }

        /* CONTACT DETAILS */

        .ff-privacy-contact {
            background: #EDF2EA;
            padding: 28px 30px;
            border-radius: 10px;
            margin-top: 12px;
        }

        .ff-privacy-contact p {
            margin: 0 0 10px;
            color: var(--ff-espresso);
        }

        .ff-privacy-contact p:last-child {
            margin-bottom: 0;
        }

        .ff-privacy-contact a {
            color: var(--ff-heading);
            text-decoration: underline;
            text-underline-offset: 3px;
            overflow-wrap: anywhere;
        }

        /* RESPONSIVE */

        @media (max-width: 991px) {
            .ff-privacy-layout {
                grid-template-columns: 1fr;
                gap: 45px;
            }

            .ff-privacy-sidebar {
                position: static;
            }

            .ff-privacy-nav {
                display: grid;
                grid-template-columns:
                    repeat(2, minmax(0, 1fr));
                column-gap: 25px;
            }
        }

        @media (max-width: 680px) {
            .ff-privacy-intro {
                padding: 50px 0;
            }

            .ff-privacy-intro-copy {
                font-size: 16px;
            }

            .ff-privacy-main {
                padding: 55px 0;
            }

            .ff-privacy-sidebar {
                padding: 22px;
            }

            .ff-privacy-nav {
                grid-template-columns: 1fr;
            }

            .ff-privacy-section {
                padding-bottom: 30px;
                margin-bottom: 35px;
            }

            .ff-privacy-section-heading {
                gap: 12px;
                align-items: flex-start;
            }

            .ff-privacy-section h2 {
                font-size: 23px;
            }

            .ff-privacy-section p,
            .ff-privacy-list li {
                font-size: 15px;
            }

            .ff-privacy-contact {
                padding: 22px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .ff-privacy-nav a {
                transition: none;
            }
        }

        /* =========================================
   FAMILY FIRST - GLOBAL BANNER FIX
   ========================================= */

body .banner {
    position: relative !important;
    width: 100%;
     height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Make the image cover the entire banner */
body .banner > img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* Keep the heading above the image */
body .banner .banner_cont {
    position: absolute !important;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Tablet */
@media (max-width: 991px) {
    body .banner {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body .banner {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body .banner > img {
        object-position: 65% center !important;
    }
}


/* ==========================================
   FAMILY FIRST
   INNER PAGE BANNER TEXT STABILITY
   ========================================== */

/* Exclude homepage hero animation */

body:not(.home-refresh-only)
.banner.team-hero .banner_cont h1,
/* ==========================================
   FAMILY FIRST
   INNER PAGE BANNER TEXT STABILITY
   ========================================== */

/* Exclude homepage hero animation */

body:not(.home-refresh-only)
.banner.team-hero .banner_cont p.ff-banner-title {
    opacity: 1 !important;
    visibility: visible !important;

    animation: none !important;
    transition: none !important;

    transform: none !important;

    text-wrap: wrap;
}

/* Disable animated line effects in inner banners */

.banner.team-hero .hl-line {
    display: block;
    overflow: visible !important;

    animation: none !important;
    transform: none !important;
}

.banner.team-hero .hl-line > span {
    opacity: 1 !important;
    visibility: visible !important;

    display: inline !important;

    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Keep manually inserted line breaks */

.banner.team-hero .banner_cont h1 br,
/* Keep manually inserted line breaks */

.banner.team-hero .banner_cont p.ff-banner-title br {
    display: block !important;
}

/* Heading layout */

.banner.team-hero .banner_cont h1,
/* Heading layout */

.banner.team-hero .banner_cont p.ff-banner-title {
    margin: 0 !important;
    line-height: 1.2 !important;
}


/* =========================================
   FAMILY FIRST - COLLABORATE BANNER
   LEFT SIDE SOFT BLUR / FADE EFFECT
   ========================================= */

/* DESKTOP */
body.collaborate-refresh
.ff-collab-page .banner.team-hero .banner_cont {
    background: linear-gradient(
        90deg,
        rgba(241, 236, 227, 0.70) 0%,
        rgba(241, 236, 227, 0.45) 30%,
        rgba(241, 236, 227, 0.18) 55%,
        transparent 78%
    ) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* TABLET */
@media (max-width: 991px) {
    body.collaborate-refresh
    .ff-collab-page .banner.team-hero .banner_cont {
        background: linear-gradient(
            90deg,
            rgba(241, 236, 227, 0.60) 0%,
            rgba(241, 236, 227, 0.32) 50%,
            transparent 92%
        ) !important;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    body.collaborate-refresh
    .ff-collab-page .banner.team-hero .banner_cont {
        background: linear-gradient(
            90deg,
            rgba(241, 236, 227, 0.50) 0%,
            rgba(241, 236, 227, 0.25) 60%,
            transparent 100%
        ) !important;
    }
}

/* ==========================================
   FAMILY FIRST - GLOBAL MOBILE BANNER FADE
   All inner-page banners | 600px and below
   ========================================== */

@media (max-width: 600px) {

    /* All inner-page banners */
    body .banner.team-hero {
        position: relative !important;
        isolation: isolate;
        overflow: hidden !important;
    }

    /* Image remains sharp */
    body .banner.team-hero > img,
    body .banner.team-hero > picture > img {
        filter: none !important;
    }

    /* Consistent cream fade behind heading */
    body .banner.team-hero .banner_cont {
        background: linear-gradient(
            90deg,
            rgba(241, 236, 227, 0.65) 0%,
            rgba(241, 236, 227, 0.42) 35%,
            rgba(241, 236, 227, 0.18) 65%,
            transparent 100%
        ) !important;

        background-image: linear-gradient(
            90deg,
            rgba(241, 236, 227, 0.65) 0%,
            rgba(241, 236, 227, 0.42) 35%,
            rgba(241, 236, 227, 0.18) 65%,
            transparent 100%
        ) !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }

    /* Keep heading above gradient */
    body .banner.team-hero .banner_cont .container {
        position: relative !important;
        z-index: 2 !important;
    }
}

/* Preserve the complete school scene at every viewport size. */
.ff-collab-page .ff-collab-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

/* Zoho's internal attribution fields must remain hidden. */
.ff-contact-page .ff-zoho-form .wfrm_fld_dpNn { display: none !important; }

/* Phones: keep the people at the right edge of the About and Adults banners in frame. */
@media (max-width: 767px) {
    body.adult-development-refresh .banner.team-hero > img,
    .ff-about-hero .banner > img,
    .ff-about-hero img { object-position: 78% center !important; }
}

.ff-privacy-intro h1 { letter-spacing: -0.02em; }

/* Phones: service page titles sit on a soft cream chip so they stay readable over any photo. */
@media (max-width: 600px) {
    .ff-neuro-page .banner.team-hero .banner_cont h1,
    .ff-therapy-page .banner.team-hero .banner_cont h1 {
        display: inline-block;
        background: rgba(246, 243, 238, 0.9);
        padding: 6px 14px;
        border-radius: 12px;
        max-width: calc(100% - 8px);
    }
}

/* Contact form buttons use the same terracotta as Book and the Home form. */
.ff-contact-page .ff-assessment-submit,
.ff-contact-page .ff-assessment-next,
.ff-contact-page .ff-zoho-form input[type="submit"],
.ff-contact-page .ff-zoho-form button[type="submit"],
.ff-contact-page .ff-zoho-form .formsubmit {
    background: var(--terracotta-ink) !important;
    border-color: var(--terracotta-ink) !important;
    color: #fff !important;
}
.ff-contact-page .ff-assessment-submit:hover,
.ff-contact-page .ff-assessment-next:hover,
.ff-contact-page .ff-zoho-form input[type="submit"]:hover,
.ff-contact-page .ff-zoho-form button[type="submit"]:hover,
.ff-contact-page .ff-zoho-form .formsubmit:hover {
    background: var(--espresso) !important;
    border-color: var(--espresso) !important;
}
