/*
 * familyFIRST redesign, Option B: "Quiet Rooms"
 *
 * Built on the davincitrading.com construction: a floating white bar, rounded
 * panels set a few pixels in from the screen edge, and a slow field of colour
 * that drifts behind the home hero, every page title and the footer. Here the
 * colours are the familyFIRST palette, softened, so the movement reads as
 * light moving across a wall rather than as a show.
 *
 * Three rules keep it calm:
 * 1. Air. Type is set small and light, panels carry generous padding, and
 *    photographs sit inside panels at modest sizes instead of filling them.
 * 2. One alignment line. All text (logo, headlines, body copy, footer) starts
 *    on the same left edge. --col-x is that edge measured from the screen;
 *    --in is the same edge measured from inside a panel.
 * 3. Colour with a job. Neutral panels are a pale sand. Each section's own hue
 *    tints its field and its panels (Child Development terracotta, Adults
 *    lavender, EAP and Team dusty blue, Schools sage).
 *
 * The colour fields are drawn by js/ff-motion.js from the --field-0 to
 * --field-5 values below; the CSS background is what shows without WebGL.
 *
 * One typeface, Lexend, with headings in the regular weight; its Arabic sibling
 * Readex Pro can join it for an Arabic site.
 */

:root {
    --font-head: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
    --body-text: #3A2C24;
    --gap: 12px;
    --tile-radius: 22px;
    --radius: 14px;
    --radius-lg: 22px;
    --photo-radius: 14px;
    --field-radius: 12px;
    --btn-radius: 999px;
    --tile: #F6F3EE;            /* pale sand: the neutral panel */
    --line: rgba(45, 31, 23, 0.11);
    --tile-pad: clamp(28px, 4.4vw, 64px);
    --space-xl: clamp(72px, 9vw, 136px);
    --space-l: clamp(52px, 6vw, 88px);
    --accent: var(--terracotta);
    --accent-ink: var(--terracotta-ink);
    --trust: var(--dusty-blue);
    --section-tint: var(--tile);
    --container: 1160px;

    /* The alignment line */
    --edge: 32px;
    --col-x: max(var(--edge), calc((100vw - var(--container)) / 2));
    --in: calc(var(--col-x) - var(--gap));

    --bar-h: 64px;
    --header-h: calc(var(--bar-h) + var(--gap));

    /* The light field: sand, dusty pink, lavender, dusty blue, clay and sage */
    --field-0: #F1E9E0;
    --field-1: #E9BFB8;
    --field-2: #DCD0F2;
    --field-3: #9DBEDA;
    --field-4: #DE9C83;
    --field-5: #B3C8A8;
}

@media (min-width: 768px) {
    :root { --edge: 48px; }
}

/* From 1200px the contact tab sits on the right edge; the edge keeps text clear of it */
@media (min-width: 1200px) {
    :root { --edge: 88px; }
}

/* Each section's field and panels lean towards its own hue */
body:has(.site-header[data-section="child"]) {
    --section-tint: #F7ECE6;
    --field-0: #F3E6DE; --field-1: #E7CBC6; --field-2: #E3B39F; --field-3: #F0D9C9; --field-4: #D99A82; --field-5: #E6DDF3;
}
body:has(.site-header[data-section="adults"]) {
    --section-tint: var(--lavender-tint);
    --field-0: #EFEAF8; --field-1: #D8CCEE; --field-2: #E7CBC6; --field-3: #BFD3E6; --field-4: #CBBBE8; --field-5: #EFE8DF;
}
body:has(.site-header[data-section="eap"]),
body:has(.site-header[data-section="team"]) {
    --section-tint: var(--blue-tint);
    --field-0: #E8EFF6; --field-1: #A9C5DC; --field-2: #D8CCEE; --field-3: #EFE8DF; --field-4: #C2D6E8; --field-5: #C9D7C2;
}
body:has(.site-header[data-section="schools"]) {
    --section-tint: var(--sage-tint);
    --field-0: #E9EEE5; --field-1: #BFCFB6; --field-2: #EFE8DF; --field-3: #BFD3E6; --field-4: #D3DFCB; --field-5: #E7CBC6;
}

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

/* Anchor jumps glide, and land clear of the floating header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background: var(--warm-white);
    color: var(--body-text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
p.ff-banner-title {
    color: var(--espresso);
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

h1,
p.ff-banner-title { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 2.1vw, 2rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; }
h4 { font-size: 1rem; }
h5 { font-size: 1rem; }

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

b, strong {
    font-weight: 500;
    color: var(--espresso);
}

a {
    color: var(--espresso);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--accent-ink);
}

.cont a,
.team-profiles-dis a,
.privacy-policy a,
.blog-detail .cont a,
.subPage-contact a {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

::selection {
    background: var(--soft-lavender);
    color: var(--espresso);
}

.ptb { padding-top: var(--space-l); padding-bottom: var(--space-l); }
.pt { padding-top: var(--space-l); }
.pb { padding-bottom: var(--space-l); }
.bg1 { background: var(--warm-white); }
.bg2 { background: var(--tile); }
.bg3 { background: var(--espresso); color: var(--sand); }

/* ---------- The grid: every container starts on the alignment line ---------- */

.container {
    max-width: none;
    padding-left: var(--col-x);
    padding-right: var(--col-x);
}

/* Containers that sit inside an edge-to-edge panel */
.site-header .container,
.site-footer > .container,
.school-service-main .service-details > .container {
    padding-left: var(--in);
    padding-right: var(--in);
}

/* ---------- Colour fields ---------- */

/* What shows before the first frame, and without WebGL: soft pools of the same colours */
.hero .hero-grid,
.banner .banner_cont,
.site-footer,
.home-team > .container,
.home-why .why-field,
.service-list-child > .container,
.service-list-adults > .container,
.home-pair .pair {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--field-0);
    background-image:
        radial-gradient(60% 70% at 18% 30%, var(--field-1), transparent 70%),
        radial-gradient(55% 65% at 78% 22%, var(--field-2), transparent 70%),
        radial-gradient(50% 60% at 62% 85%, var(--field-3), transparent 70%),
        radial-gradient(40% 50% at 30% 90%, var(--field-4), transparent 70%);
}


/* ---------- Buttons: pills ---------- */

.butn {
    display: inline-block;
}

.butn a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--espresso);
    color: var(--warm-white);
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.2;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.butn a::after {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.butn a:hover {
    background: var(--accent-ink);
    color: var(--warm-white);
}

.butn a:hover::after {
    transform: translateX(4px);
}

/* ---------- Floating header ---------- */

.site-header {
    position: sticky;
    top: var(--gap);
    z-index: 1030;
    margin: var(--gap) var(--gap) 0;
    border-radius: 18px;
    background: var(--warm-white);
    box-shadow: 0 0 0 1px rgba(45, 31, 23, 0.06), 0 8px 28px rgba(45, 31, 23, 0.05);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 0 0 1px rgba(45, 31, 23, 0.07), 0 12px 34px rgba(45, 31, 23, 0.1);
}

.header-inner {
    min-height: var(--bar-h);
    gap: 16px;
}

.site-header .logo {
    flex: none;
    width: clamp(148px, 11.5vw, 168px);
    margin: 0;
    padding: 0;
}

.site-header .navbar-nav {
    gap: 2px;
}

.site-header .nav-link {
    padding: 8px 13px !important;
    border-radius: 999px;
    color: var(--espresso) !important;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.site-header .nav-link:hover {
    background: var(--tile);
}

.site-header .nav-link.active {
    background: var(--espresso);
    color: var(--warm-white) !important;
}

.header-search {
    width: 176px;
    margin-left: 8px;
}

.header-search .gsc-input-box {
    background-color: var(--tile) !important;
    border-color: var(--sand-deep) !important;
}

/* The booking pill at the navbar's end (phones book through the bottom bar) */
.nav-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    margin-left: 14px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--terracotta-ink);
    color: var(--warm-white);
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.nav-book:hover,
.nav-book:focus-visible {
    background: var(--espresso);
    color: var(--warm-white);
}

.nav-book .ff-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 1199.98px) {
    .nav-book {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    :root { --bar-h: 60px; }

    .site-header .logo {
        width: 148px;
    }

    .site-header .navbar-collapse {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        padding: 8px var(--in) 22px;
        border-radius: 18px;
        background: var(--warm-white);
        box-shadow: 0 0 0 1px var(--sand-deep), 0 18px 34px rgba(45, 31, 23, 0.12);
        max-height: calc(100vh - var(--header-h) - 24px);
        overflow-y: auto;
    }

    .site-header .navbar-nav {
        gap: 0;
    }

    .site-header .nav-link {
        font-size: 1.125rem;
        padding: 13px 0 !important;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
    }

    .site-header .nav-link:hover,
    .site-header .nav-link.active {
        background: transparent;
    }

    .site-header .nav-link.active {
        color: var(--accent-ink) !important;
    }

    .header-search {
        width: 100%;
        max-width: 480px;
        margin: 16px 0 0;
    }
}

/* ---------- Panels ---------- */

.hero,
.intro,
.home-team,
.home-pair,
.home-why {
    padding: var(--gap) var(--gap) 0;
}

.hero > .container,
.intro > .container,
.home-team > .container,
.home-pair > .container,
.home-why > .container {
    padding: 0;
}

/* ---------- Home: hero, the colour field with three slow rails of
   photographs and service cards drifting through its right half ---------- */

.hero .hero-grid {
    --field-speed: 0.65;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(28px, 4vw, 72px);
    min-height: clamp(600px, calc(100vh - var(--header-h) - 2 * var(--gap)), 860px);
    padding: var(--tile-pad) var(--in);
    border-radius: var(--tile-radius);
}

.hero-text {
    padding-bottom: 6px;
}

.hero h1 {
    max-width: 12em;
    margin: 0;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

.hero h1 span {
    display: block;
    max-width: 30em;
    margin-top: 22px;
    color: var(--body-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

/* The rails cover the right half of the panel from edge to edge, laid over
   it rather than in the grid so their content never drives the panel's
   height; the panel's rounded corners and overflow clip them. */
.hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(50%, 760px);
}

/* From 1200px the floating contact buttons sit on the right screen edge;
   the rails stop short of them so no card runs underneath (the width gives
   back what the inset takes, keeping the rails' left edge at the midline) */
@media (min-width: 1200px) {
    .hero-media {
        right: 62px;
        width: min(calc(50% - 62px), 720px);
    }
}

.hero-rails {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap);
    height: 100%;
}

.rail-stack {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gap);
    min-height: 0;
}

/* No fades: the photographs clip cleanly at the rail edges, like the
   tiles everywhere else */
.rail {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.rail-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* One slow, constant walking pace; each rail's duration matches its length,
   and the negative delays start each stream mid-walk so they never align */
.rail-a .rail-track { animation: rail-down 130s linear -12s infinite; }
.rail-b .rail-track { animation: rail-up 75s linear -34s infinite; }
.rail-c .rail-track { animation: rail-down 110s linear -51s infinite; }

/* Resting the pointer on a rail lets the eye settle */
.rail:hover .rail-track {
    animation-play-state: paused;
}

/* The track holds its group twice; sliding by half its height loops seamlessly */
@keyframes rail-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes rail-down {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

.rail-group {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.rail-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--photo-radius);
}

.rail-stack .rail-photo img {
    aspect-ratio: 4 / 3;
}

@media (prefers-reduced-motion: reduce) {
    .rail-track {
        animation: none !important;
    }
}

/* Below 1200px the contact bar takes the bottom of the screen */
@media (max-width: 1199.98px) {
    .hero .hero-grid {
        min-height: clamp(520px, calc(100vh - var(--header-h) - 2 * var(--gap) - 60px), 760px);
    }
}

@media (max-width: 991.98px) {
    .hero .hero-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
        min-height: 0;
        padding-top: clamp(44px, 9vw, 72px);
        padding-bottom: 0;
    }

    /* Stacked under the text, back in the flow, bleeding to the panel edges */
    .hero-media {
        position: static;
        width: auto;
        height: 560px;
        margin: 0 calc(-1 * var(--in));
    }
}

@media (max-width: 767px) {
    .hero .hero-grid {
        padding: 40px var(--in) 0;
    }

    .hero-media {
        height: 500px;
    }
}

/* ---------- Home: introduction, a pale panel with three photo cards ---------- */

/* The introduction opens on white: a breath of air between the hero's
   colour field and the sand of the services panel. The story is short, and
   the team's disciplines stream through its middle as tinted chips. */
.intro .intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    column-gap: 16px;
    padding: var(--space-xl) var(--in);
    background: transparent;
}

.intro-lead {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    max-width: 56rem;
    margin-bottom: clamp(48px, 6vw, 84px);
}

.intro-lead h2 {
    margin: 0 0 24px;
}

.intro-lead .lead-line {
    max-width: 54em;
    margin: 0 0 28px;
    color: var(--text-soft);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.word-stream {
    overflow: hidden;
    margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.word-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: words 30s linear infinite;
}

.word-group {
    display: flex;
    gap: 10px;
    padding-right: 10px;
}

.wchip {
    flex: none;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--tile);
    color: var(--espresso);
    font-size: 0.9375rem;
    box-shadow: 0 10px 22px -18px rgba(45, 31, 23, 0.4);
}

.word-group .wchip:nth-child(5n+2) { background: #F2DFD3; }
.word-group .wchip:nth-child(5n+3) { background: #DCE8F2; }
.word-group .wchip:nth-child(5n+4) { background: #DFE8D8; }
.word-group .wchip:nth-child(5n+5) { background: #EFE6F8; }

@keyframes words {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .word-track {
        animation: none !important;
    }
}

/* Cards: a photo with its note below, and a tall photo to close the row */
.intro-photo {
    padding: 10px 10px 0;
    border-radius: 18px 18px 0 0;
    background: var(--warm-white);
}

.intro-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.intro-photo-1 { grid-column: 1; grid-row: 2; }
.intro-note-1 { grid-column: 1; grid-row: 3; }
.intro-photo-2 { grid-column: 2; grid-row: 2; }
.intro-note-2 { grid-column: 2; grid-row: 3; }

.intro-photo-1 img {
    object-position: 40% 50%;
}

.intro-photo-3 {
    grid-column: 3;
    grid-row: 2 / span 2;
    padding-bottom: 10px;
    border-radius: 18px;
}

.intro-photo-3 img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 300px;
    object-position: 58% 50%;
}

.intro-note {
    padding: 22px 26px 30px;
    border-radius: 0 0 18px 18px;
    background: var(--warm-white);
}

/* Each introduction card keeps its own soft hue */
.intro-photo-1,
.intro-note-1 {
    background: var(--pink-tint);
}

.intro-photo-2,
.intro-note-2 {
    background: #EAF1F7;
}

.intro-photo-3 {
    background: var(--sage-tint);
}

.intro-note h3 {
    margin: 0 0 10px;
    font-size: 1.1875rem;
}

.intro-note p {
    color: var(--body-text);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .intro-lead {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }
}

@media (max-width: 767px) {
    .intro .intro-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        padding-top: 56px;
        padding-bottom: var(--in);
    }

    .intro-grid > * {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .intro-lead {
        margin-bottom: 36px;
    }

    .intro-note {
        margin-bottom: 12px;
    }

    .intro-photo-3 img {
        min-height: 0;
        aspect-ratio: 4 / 3;
        height: auto;
    }
}

/* ---------- Home: our services, two slow lanes of white cards streaming
   in opposite directions (the hero's movement, turned sideways).
   js/ff-motion.js builds the lanes from the list below them; the list
   itself stays for assistive technology, without JavaScript and under
   reduced motion. ---------- */

.home-services {
    padding: var(--gap) var(--gap) 0;
}

.services-grid {
    display: block;
    padding: var(--space-l) var(--in);
    border-radius: var(--tile-radius);
    background: var(--tile);
}

.services-head h2 {
    margin-bottom: 36px;
}

.services-photo {
    display: none;
}

.service-lanes {
    margin: 0 calc(-1 * var(--in));
}

.service-lanes .lane {
    overflow: hidden;
}

.service-lanes .lane + .lane {
    margin-top: var(--gap);
}

.lane-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.lane-group {
    display: flex;
    gap: var(--gap);
    margin: 0 var(--gap) 0 0;
    padding: 0;
    list-style: none;
}

.lane-group .item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    column-gap: 16px;
    width: clamp(300px, 30vw, 400px);
    min-height: 196px;
    padding: 24px 26px 26px;
    border-radius: var(--photo-radius);
    background: var(--warm-white);
    box-shadow: 0 16px 32px -26px rgba(45, 31, 23, 0.35);
}

/* Every card carries one of the palette's washes, in turn: clay, sky,
   sage, lavender, blush. The same cycle colours the readable list. */
.lane-group li:nth-child(5n+1),
.service-items .item:nth-child(5n+1) {
    background: linear-gradient(135deg, #F8EEE7, #EFD9CB);
}

.lane-group li:nth-child(5n+2),
.service-items .item:nth-child(5n+2) {
    background: linear-gradient(135deg, #EEF4F9, #CfE0EE);
}

.lane-group li:nth-child(5n+3),
.service-items .item:nth-child(5n+3) {
    background: linear-gradient(135deg, #EDF2E9, #D6E2CD);
}

.lane-group li:nth-child(5n+4),
.service-items .item:nth-child(5n+4) {
    background: linear-gradient(135deg, #F3EEFB, #DFD3F2);
}

.lane-group li:nth-child(5n+5),
.service-items .item:nth-child(5n+5) {
    background: linear-gradient(135deg, #F8EDEA, #EBD2CC);
}

.lane-group .item img {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    opacity: 0.85;
}

.lane-group h3 {
    margin: 2px 0 6px;
    font-size: 1.0625rem;
}

.lane-group p {
    margin: 0;
    color: var(--body-text);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Once the lanes exist, the readable list is kept for screen readers only */
.service-items.lanes-src {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* ---------- Hover life: everything under the pointer answers quietly ---------- */

/* Streaming service cards lift like their list twins */
.lane-group .item {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.lane-group .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px -26px rgba(45, 31, 23, 0.45);
}

.lane-group .item img {
    transition: transform 0.35s ease;
}

.lane-group .item:hover img {
    transform: translateY(-2px);
}

/* A photograph in any slider breathes under the pointer
   (the slider itself is already easing to rest) */
.rail-photo {
    overflow: hidden;
    border-radius: var(--photo-radius);
}

.rail-photo img {
    transition: transform 0.6s ease;
}

.rail-photo:hover img {
    transform: scale(1.045);
}

/* The introduction's cards and chips answer gently */
.intro-photo img {
    transition: transform 0.6s ease;
}

.intro-photo:hover img {
    transform: scale(1.03);
}

.wchip {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wchip:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -18px rgba(45, 31, 23, 0.5);
}

/* EAP and Collaborate photographs ease closer */
.pair img {
    transition: transform 0.6s ease;
}

.pair:hover img {
    transform: scale(1.03);
}

/* Bento cards rise to meet the pointer (their photos already zoom) */
.service-list-child .items-thum li,
.service-list-adults .items-thum li {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.service-list-child .items-thum li:hover,
.service-list-adults .items-thum li:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 44px -28px rgba(45, 31, 23, 0.5);
}

/* Nothing moves for visitors who ask for stillness */
@media (prefers-reduced-motion: reduce) {
    .lane-group .item:hover,
    .lane-group .item:hover img,
    .rail-photo:hover img,
    .intro-photo:hover img,
    .wchip:hover,
    .pair:hover img,
    .service-list-child .items-thum li:hover,
    .service-list-adults .items-thum li:hover {
        transform: none;
    }
}

/* ---------- Glass, at the client's direction: the scrolled header, the
   form fields, and the pieces floating over moving colour ---------- */

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
}

/* The logo is always 100% crisp and unblended */
.site-header .logo img {
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
}

/* Pills frost over the team panel's drifting blue */
.team-directory a {
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.team-directory li:nth-child(4n+2) a { background: rgba(244, 232, 229, 0.6); }
.team-directory li:nth-child(4n+3) a { background: rgba(228, 235, 225, 0.6); }
.team-directory li:nth-child(4n) a { background: rgba(246, 243, 238, 0.55); }

/* The reasons frost over the sage field */
.why-list .items {
    background: rgba(255, 255, 255, 0.66);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.service-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.service-items .item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    column-gap: 16px;
    padding: 24px 26px 26px;
    border-radius: var(--photo-radius);
    background: var(--warm-white);
    box-shadow: 0 16px 32px -26px rgba(45, 31, 23, 0.35);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.service-items .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px -26px rgba(45, 31, 23, 0.45);
}

.service-items .item img {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    opacity: 0.85;
    transition: transform 0.35s ease;
}

.service-items .item:hover img {
    transform: translateY(-2px);
}

.service-items h3 {
    margin: 2px 0 6px;
    font-size: 1.0625rem;
}

.service-items p {
    margin: 0;
    color: var(--body-text);
    font-size: 0.9375rem;
    line-height: 1.65;
}

@media (max-width: 575px) {
    .service-items {
        grid-template-columns: 1fr;
    }
}

/* ---------- Home: our team, a dusty blue panel of category pills ---------- */

.home-team > .container {
    display: block;
    padding: var(--space-l) var(--in);
    border-radius: var(--tile-radius);
    /* A slow dusty-blue field; Espresso text on every pool stays above 10:1 */
    --field-0: #E8EFF6;
    --field-1: #D5E3EF;
    --field-2: #C9DCEB;
    --field-3: #EFE8DF;
    --field-4: #DDE8F2;
    --field-5: #E6DEF4;
    --field-speed: 0.45;
}

/* Heading at the top left, the pills flowing left to right beneath it;
   only the portrait column keeps the right side */
.home-team h2 {
    margin: 0 0 36px;
}

/* A slow column of the clinicians' own portraits drifts down the panel's
   right edge, the hero's movement carried through (decorative; the Team
   page holds the real portraits with names) */
.home-team > .container {
    min-height: 480px;
}

@media (min-width: 992px) {
    .home-team > .container {
        padding-right: clamp(340px, 30vw, 440px);
    }
}

.team-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    right: var(--gap);
    width: clamp(260px, 24vw, 360px);
    overflow: hidden;
}

.team-rail .rail-photo img {
    aspect-ratio: 3 / 4;
}

@media (max-width: 991.98px) {
    .team-rail {
        display: none;
    }
}

.team-directory {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-directory a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 26px 10px 16px;
    border-radius: 999px;
    background: var(--warm-white);
    color: var(--espresso);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.team-directory a:hover {
    color: var(--espresso);
    box-shadow: 0 0 0 1px var(--blue-ink);
    transform: translateY(-2px);
}

/* The pills take turns in the palette's softest fills */
.team-directory li:nth-child(4n+2) a { background: var(--pink-tint); }
.team-directory li:nth-child(4n+3) a { background: var(--sage-tint); }
.team-directory li:nth-child(4n) a { background: var(--tile); }

.team-directory img {
    width: 32px;
    height: 32px;
}

.team-directory h3 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 400;
    letter-spacing: 0;
}

@media (max-width: 991.98px) {
    .home-team > .container {
        grid-template-columns: 1fr;
        row-gap: 24px;
        min-height: 0;
    }
}

/* ---------- Service lists: open indexes with small thumbnails ---------- */

.service-list {
    padding: var(--space-l) 0;
}

.service-list > .container {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.service-list h2 {
    margin: 0 0 24px !important;
}


/* On a section's own landing page the list sits open on white below the coloured title */
.service-list.bg2 {
    background: transparent;
}

.service-list .items-thum ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 56px);
}

.service-list .items-thum li {
    border-top: 1px solid var(--line);
}

.service-list .items-thum a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    color: var(--espresso);
}

.service-list .items-thum a::after {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    opacity: 0.4;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.5M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.service-list .items-thum a:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

.service-list .items-thum figure {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
}

.service-list .items-thum img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-list .items-thum a:hover img {
    transform: scale(1.08);
}

.service-list .items-thum h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .service-list > .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .service-list .items-thum ul {
        grid-template-columns: 1fr;
    }

    .service-list .items-thum a {
        grid-template-columns: 56px minmax(0, 1fr) 16px;
        gap: 14px;
    }
}

/* On the home page, Child Development and Adult Services take Option A's
   photo grids, set as panels whose colour drifts slowly in each section's hue */

.service-list-child,
.service-list-adults {
    padding: var(--gap) var(--gap) 0;
}

.service-list-child > .container,
.service-list-adults > .container {
    display: block;
    padding: var(--space-l) var(--in);
    border-radius: var(--tile-radius);
    --field-speed: 0.45;
}

.service-list-child > .container {
    /* Clay: terracotta folded into sand */
    --field-0: #F5E9E1;
    --field-1: #EEDCCE;
    --field-2: #E7D2C6;
    --field-3: #F3E6DE;
    --field-4: #EFD9CB;
    --field-5: #F4E8E5;
}

.service-list-adults > .container {
    /* Lavender, kept light */
    --field-0: #F1ECFB;
    --field-1: #E8DFF7;
    --field-2: #E2D7F3;
    --field-3: #EFE8DF;
    --field-4: #ECE3F8;
    --field-5: #F4E8E5;
}

.service-list-child h2,
.service-list-adults h2 {
    margin-bottom: 32px !important;
}

/* A bento arrangement: the first service leads at double size, the rest
   sit as white cards around it on the drifting field */
.service-list-child .items-thum ul,
.service-list-adults .items-thum ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.service-list-child .items-thum li,
.service-list-adults .items-thum li {
    border-top: 0;
    border-radius: var(--photo-radius);
    padding: 10px 10px 16px;
    background: var(--warm-white);
    box-shadow: 0 16px 32px -26px rgba(45, 31, 23, 0.3);
}

.service-list-child .items-thum li:first-child,
.service-list-adults .items-thum li:first-child {
    grid-column: 1 / -1;
}

.service-list-child .items-thum a,
.service-list-adults .items-thum a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.service-list-child .items-thum a::after,
.service-list-adults .items-thum a::after {
    display: none;
}

.service-list-child .items-thum figure,
.service-list-adults .items-thum figure {
    flex: none;
    margin: 0;
    aspect-ratio: 3 / 2;
    border-radius: 9px;
    background: var(--tile);
}

.service-list-child .items-thum h3,
.service-list-adults .items-thum h3 {
    margin: 12px 6px 2px;
    line-height: 1.35;
}

.service-list-child .items-thum a:hover h3,
.service-list-adults .items-thum a:hover h3 {
    color: var(--accent-ink);
}

@media (min-width: 768px) {
    .service-list-child .items-thum ul,
    .service-list-adults .items-thum ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-list-child .items-thum li:first-child,
    .service-list-adults .items-thum li:first-child {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
    }

    .service-list-child .items-thum li:first-child figure,
    .service-list-adults .items-thum li:first-child figure {
        flex: 1;
        min-height: 0;
        aspect-ratio: auto;
    }

    .service-list-child .items-thum li:first-child h3,
    .service-list-adults .items-thum li:first-child h3 {
        font-size: 1.15rem;
    }
}

@media (min-width: 1200px) {
    .service-list-child .items-thum ul,
    .service-list-adults .items-thum ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- Home: EAP and Collaborate, two quiet field panels ---------- */

.pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.pair {
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3.6vw, 52px);
    border-radius: var(--tile-radius);
    --field-speed: 0.45;
}

.pair-eap {
    /* Dusty blue, barely moving */
    --field-0: #E9F0F6;
    --field-1: #D8E5F0;
    --field-2: #CCDEEB;
    --field-3: #EFE8DF;
    --field-4: #DFEAF3;
    --field-5: #E8E0F5;
}

.pair-collab {
    /* Sage */
    --field-0: #EAEFE6;
    --field-1: #DDE7D7;
    --field-2: #D3DFCB;
    --field-3: #EFE8DF;
    --field-4: #E1EADA;
    --field-5: #ECDFD7;
}

.pair img {
    order: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--photo-radius);
}

.pair h2 {
    order: 2;
    margin: 32px 0 10px;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
}

.pair p {
    order: 3;
    max-width: 34em;
    color: var(--body-text);
}

.pair .butn {
    order: 4;
    margin-top: auto;
    padding-top: 28px;
}

.pair .butn a {
    background: transparent;
    color: var(--espresso);
    box-shadow: inset 0 0 0 1px var(--espresso);
}

.pair .butn a:hover {
    background: var(--espresso);
    color: var(--warm-white);
}

@media (max-width: 767px) {
    .pair-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Home: why choose, one sage panel with a small photo set into it ---------- */

.home-why > .container {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 27vw, 420px);
    column-gap: clamp(32px, 5vw, 80px);
    row-gap: 0;
}

/* The panel itself, drawn behind the heading, the reasons and the photo:
   an empty element rather than a pseudo-element, so the colour field's
   canvas has somewhere to live */
.home-why .why-field {
    grid-column: 1 / -1;
    grid-row: 1 / span 2;
    z-index: -1;
    border-radius: var(--tile-radius);
    /* Sage, at its quietest */
    --field-0: #E9EEE5;
    --field-1: #DFE8D9;
    --field-2: #D6E1CE;
    --field-3: #EFE8DF;
    --field-4: #E4EBDE;
    --field-5: #EDE2DA;
    --field-speed: 0.4;
}

.home-why .banner-sub,
.home-why .why-grid {
    display: contents;
}

.home-why .banner-sub h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: var(--space-l) 0 28px var(--in);
}

.home-why .why-list {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    padding: 0 0 var(--space-l) var(--in) !important;
}

.home-why .banner-sub img {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: calc(100% - var(--tile-pad));
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 46% 40%;
    border-radius: var(--photo-radius);
}

.home-why .why-grid > .col-lg-6:not(.why-list) {
    grid-column: 1 / -1;
    grid-row: 3;
    width: auto;
    margin-top: var(--gap);
    padding: 0;
}

/* The reasons sit as soft white cards on the sage field */
.home-why .why-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    align-content: start;
}

.why-list .items {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 18px 22px 20px;
    border-radius: var(--photo-radius);
    background: rgba(255, 255, 255, 0.82);
}

.why-list .items::before {
    content: "";
    grid-row: 1 / span 2;
    width: 7px;
    height: 7px;
    margin-top: 10px;
    border-radius: 50%;
    background: var(--sage-ink);
}

@media (max-width: 575px) {
    .home-why .why-list {
        grid-template-columns: 1fr;
    }
}

.why-list h3 {
    margin: 0 0 2px;
    font-size: 1.0625rem;
}

.why-list p {
    color: var(--body-text);
}

/* The spotlight (ff-motion adds .why-spot and builds the stage): the five
   reasons become a menu beside one large colour slide, each reason in its
   own hue with a faint photograph washed into it. The section photograph
   steps aside so the stage can carry the pictures instead. Without the
   script, or with reduced motion, the plain cards above stand instead. */
.home-why.why-spot-on > .container {
    grid-template-columns: 1fr;
}

.home-why.why-spot-on .banner-sub img {
    display: none;
}

.home-why.why-spot-on .why-list {
    padding-right: var(--in) !important;
}

.home-why .why-list.why-spot {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: clamp(24px, 4vw, 56px);
    row-gap: 8px;
}

.why-list.why-spot .items {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-radius: 14px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.4s ease;
}

.why-list.why-spot .items::before {
    content: "";
    grid-row: auto;
    width: 7px;
    height: 7px;
    margin: 0;
    border-radius: 50%;
    background: var(--sage-ink);
    flex-shrink: 0;
    opacity: 0.6;
}

/* The descriptions stay readable to assistive technology; sighted visitors
   read them on the stage */
.why-list.why-spot .items p {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.why-list.why-spot h3 {
    margin: 0;
    font-size: 1.125rem;
}

.why-list.why-spot .items:hover {
    transform: translateX(6px);
}

.why-list.why-spot .items:focus-visible {
    outline: 3px solid rgba(201, 111, 86, 0.4);
    outline-offset: 2px;
}

.why-list.why-spot .items.active:nth-child(1) { background: linear-gradient(135deg, #F3DCCB, #E8BFA6); }
.why-list.why-spot .items.active:nth-child(2) { background: linear-gradient(135deg, #D8E7F3, #AECBE3); }
.why-list.why-spot .items.active:nth-child(3) { background: linear-gradient(135deg, #DCE8D4, #BDD2B0); }
.why-list.why-spot .items.active:nth-child(4) { background: linear-gradient(135deg, #E9DFF8, #CDBBEA); }
.why-list.why-spot .items.active:nth-child(5) { background: linear-gradient(135deg, #F4DFDB, #E3BDB7); }

.why-stage {
    grid-column: 2;
    grid-row: 1 / span 5;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 430px;
    padding: clamp(28px, 4vw, 58px);
    border-radius: 24px;
    overflow: hidden;
    transition: background 0.6s ease;
}

/* The photograph, washed into the slide's hue */
.why-stage .stage-photo {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    mix-blend-mode: multiply;
    opacity: 0.2;
}

.why-stage .stage-title {
    max-width: 14em;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #2D1F17;
}

.why-stage .stage-text {
    max-width: 32em;
    font-size: 1.125rem;
    color: var(--body-text);
}

.why-stage .stage-title,
.why-stage .stage-text,
.why-stage .stage-photo {
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.why-stage.swap .stage-title,
.why-stage.swap .stage-text {
    opacity: 0;
    transform: translateY(10px);
}

.why-stage.swap .stage-photo {
    opacity: 0;
}

@media (max-width: 991.98px) {
    .home-why .why-list.why-spot {
        grid-template-columns: 1fr;
    }

    .why-stage {
        grid-column: 1;
        grid-row: auto;
        min-height: 320px;
        margin-top: 14px;
    }
}

/* The form panel: its heading on the left, the fields in two columns */
.home-form-main {
    border-radius: var(--tile-radius);
    background: var(--warm-white);
    padding: var(--tile-pad);
    color: var(--body-text);
}

.home-form-main h3 {
    margin-bottom: 18px;
    font-size: clamp(1.35rem, 1.7vw, 1.6rem);
    font-weight: 400;
    letter-spacing: -0.015em;
}

.home-why .home-form-main {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 6vw, 96px);
    padding: var(--space-l) var(--tile-pad) var(--space-l) var(--in);
    background: #F6F1EA;
    box-shadow: inset 0 0 0 1px var(--sand-deep);
}

/* The ways to reach us sit under the heading; the photo grows to close the
   column level with the form's foot */
.home-why .home-form-main > .form-aside {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    margin-top: 14px;
    font-size: 0.9375rem;
}

.form-aside p {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    border-bottom: 1px solid var(--sand-deep);
}

.form-aside p:last-of-type {
    border-bottom: 0;
}

.form-aside svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--sage-ink);
}

.form-aside a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.form-aside a:hover {
    color: var(--accent-ink);
}

.form-aside img {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 220px;
    object-fit: cover;
    margin-top: 24px;
    border-radius: var(--photo-radius);
}

/* Zoho prints its own second title above the fields; the panel already has
   its heading */
.home-why #crmWebToEntityForm .zcwf_title {
    display: none !important;
}

/* Softer fields: a quiet hairline and a feather of shadow in place of the
   hard outline; focus carries the clarity instead */
.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 {
    border: 1px solid rgba(45, 31, 23, 0.1) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(45, 31, 23, 0.04), 0 10px 24px -20px rgba(45, 31, 23, 0.18);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-form-main #crmWebToEntityForm .zcwf_col_fld_slt {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px !important;
    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") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
}

.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 {
    background: rgba(255, 255, 255, 0.85) !important;
}

.home-form-main #crmWebToEntityForm .zcwf_col_fld input[type=text]:hover,
.home-form-main #crmWebToEntityForm .zcwf_col_fld textarea:hover,
.home-form-main #crmWebToEntityForm .zcwf_col_fld_slt:hover {
    border-color: rgba(45, 31, 23, 0.22) !important;
}

.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(--terracotta-ink) !important;
    outline: 3px solid rgba(201, 111, 86, 0.28);
    outline-offset: 0;
}

.home-why .home-form-main > :not(h3):not(.form-aside) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.home-why .home-form-main > h3 {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-bottom: 0;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
}

@media (min-width: 768px) {
    .home-why #crmWebToEntityForm form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .home-why #crmWebToEntityForm form > * {
        grid-column: 1 / -1;
    }

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

@media (max-width: 991.98px) {
    .home-why > .container {
        grid-template-columns: 1fr;
    }

    .home-why .why-field {
        grid-row: 1 / span 3;
    }

    .home-why .banner-sub h2,
    .home-why .why-list {
        grid-column: 1;
    }

    .home-why .why-list {
        padding-right: var(--in) !important;
        padding-bottom: 36px !important;
    }

    .home-why .banner-sub img {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        width: min(100% - 2 * var(--in), 420px);
        margin: 0 0 var(--in) var(--in);
        aspect-ratio: 4 / 3;
    }

    .home-why .why-grid > .col-lg-6:not(.why-list) {
        grid-row: 4;
    }

    .home-why .home-form-main {
        grid-template-columns: 1fr;
    }

    .home-why .home-form-main > * {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .home-why .home-form-main > .form-aside {
        margin-top: 0;
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .home-why .banner-sub h2 {
        padding: 48px var(--in) 20px;
    }

    .home-why .home-form-main {
        padding: 40px var(--in);
    }
}

/* ---------- Home: important links, Option A's open three-column list ---------- */

.impor-link {
    padding: var(--space-xl) 0;
}

.impor-link h3 {
    margin-bottom: 22px;
    font-size: 1.375rem;
    font-weight: 400;
}

.impor-link ul {
    column-gap: 40px;
}

@media (min-width: 768px) {
    .impor-link ul { column-count: 2; }
}

@media (min-width: 992px) {
    .impor-link ul { column-count: 3; }
}

.impor-link li {
    break-inside: avoid;
}

.impor-link li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 12px 14px;
    margin: 0 -14px;
    border-radius: 10px;
    border-bottom: 1px solid var(--sand-deep);
    font-size: 0.9375rem;
    transition: background-color 0.25s ease;
}

.impor-link li a:hover {
    background: var(--tile);
}

.impor-link li a::after {
    content: "";
    flex: none;
    width: 13px;
    height: 13px;
    background: currentColor;
    opacity: 0.45;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3h8v8M13 3L3 13' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3h8v8M13 3L3 13' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.impor-link li a:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* ---------- Footer: a dark field ---------- */

.site-footer {
    --field-0: #2D1F17;
    --field-1: #4E2A1D;
    --field-2: #2D1F17;
    --field-3: #3A271D;
    --field-4: #66331F;
    --field-5: #33231A;
    --field-speed: 0.5;
    margin: var(--gap);
    padding: var(--space-l) 0 28px;
    border-radius: var(--tile-radius);
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
}

.site-footer h2 {
    color: var(--warm-white);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer h3 {
    color: var(--warm-white);
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0 0 6px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
    color: var(--warm-white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer ul li {
    padding: 4px 0;
}

.footer-cols {
    row-gap: 36px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact .ff-icon {
    color: var(--dusty-pink);
}

.site-footer .butn.s3 {
    display: block;
    margin-top: 12px;
}

.site-footer .butn.s3 a {
    min-height: 44px;
    padding: 10px 18px;
    background: var(--warm-white);
    color: var(--espresso);
    font-size: 0.9375rem;
}

.site-footer .butn.s3 .ff-icon {
    color: currentColor;
}

.site-footer .butn.s3 a::after {
    display: none;
}

.site-footer .butn.s3 a:hover {
    background: var(--tile);
    color: var(--espresso);
    text-decoration: none;
}

/* The brand block: the light logo over the espresso field, a line on the
   practice, the address, and the social profiles */
.footer-brand img {
    width: min(192px, 100%);
    height: auto;
    margin: -4px 0 18px;
}

.footer-brand p {
    margin: 0 0 10px;
    max-width: 26em;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-soc {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-soc li {
    padding: 0;
}

.footer-soc a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-soc a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-soc .ff-icon {
    width: 20px;
    height: 20px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-soc a {
        transition: none;
    }

    .footer-soc a:hover {
        transform: none;
    }
}

.site-footer .copy {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    .site-footer ul li {
        padding: 0;
    }

    .site-footer ul li a {
        display: inline-block;
        padding: 10px 0;
    }

    .footer-contact li {
        min-height: 44px;
    }
}

/* ---------- Footer: unified beige information panel ---------- */
.site-footer {
    margin: var(--gap);
    padding: clamp(34px, 4vw, 56px) 0 20px;
    border: 1px solid #D6C6B6;
    border-radius: 28px;
    background: #E7DBCD;
    background-image: none;
    color: var(--espresso);
    font-size: .9375rem;
}

.site-footer::before,
.site-footer::after {
    content: none;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.footer-intro {
    display: flex;
    align-items: center;
    padding-bottom: clamp(28px, 4vw, 44px);
    border-bottom: 1px solid #CDBAA7;
}

.footer-brand {
    display: block;
}

.footer-brand img {
    display: block;
    width: min(230px, 100%);
    height: auto;
    margin: 0;
}

.footer-brand p,
.footer-address p {
    margin: 0;
    color: var(--espresso);
    font-size: clamp(.92rem, 1.1vw, 1.02rem);
    line-height: 1.75;
}

.footer-brand p {
    max-width: 38em;
}

.footer-address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(30px, 4vw, 48px) 0;
}

.site-footer h2 {
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid #CDBAA7;
    color: #76513B;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer h3 {
    margin: 0 0 9px;
    color: var(--espresso);
    font-size: .95rem;
    font-weight: 600;
}

.site-footer a {
    color: var(--espresso);
}

.site-footer a:hover {
    color: #76513B;
    text-decoration: none;
}

.site-footer ul li {
    padding: 5px 0;
    line-height: 1.55;
}

.footer-column:not(.footer-contact-column) a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-column:not(.footer-contact-column) a::after {
    content: "→";
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .2s ease, transform .2s ease;
}

.footer-column:not(.footer-contact-column) a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    display: grid;
    gap: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.footer-contact .ff-icon {
    color: #76513B;
}

.site-footer .butn.s3 {
    display: block;
    margin-top: 12px;
    padding: 0;
}

.site-footer .butn.s3 a {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--espresso);
    color: #fff;
    font-size: .9rem;
}

.site-footer .butn.s3 a:hover {
    background: #453126;
    color: #fff;
}

.site-footer .butn.s3 .ff-icon {
    color: currentColor;
}

.footer-soc {
    display: flex;
    gap: 9px;
    margin: 0;
}

.footer-soc li {
    padding: 0 !important;
}

.footer-soc a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #BFA994;
    border-radius: 50%;
    color: #76513B;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.footer-soc a:hover {
    border-color: var(--espresso);
    background: var(--espresso);
    color: #fff;
    transform: translateY(-2px);
}

.site-footer .copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid #CDBAA7;
    color: #634E43;
    font-size: .82rem;
}

.site-footer .copy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer :focus-visible {
    outline-color: var(--espresso);
}

@media (max-width: 991px) {
    .footer-intro { display: flex; }
}

@media (max-width: 767px) {
    .site-footer {
        margin: 10px;
        padding-top: 30px;
        border-radius: 22px;
    }

    .footer-brand img {
        width: 185px;
    }

    /* Location on its own row first, then quick links beside contact */
    .footer-directory {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: 28px 16px;
    }

    .footer-location-column {
        grid-column: 1 / -1;
        order: -1;
    }

    .footer-contact li {
        gap: 8px;
        font-size: .88rem;
    }

    .footer-contact a {
        min-width: 0;
        overflow-wrap: break-word;
    }

    .site-footer .butn.s3 a {
        padding-inline: 10px;
        font-size: .82rem;
    }

    .site-footer .butn.s3 .ff-icon {
        display: none;
    }

    .site-footer ul li,
    .site-footer ul li a {
        padding-block: 4px;
    }

    .footer-contact li {
        min-height: 36px;
    }

    .site-footer .butn.s3 a {
        padding-block: 11px;
    }

    .site-footer .copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

}

/* ---------- Floating contact actions: labelled pills ----------
   One sand surface. WhatsApp and Call are white outlined pills (WhatsApp
   in its own green), booking is the terracotta pill used for Book in the
   header. Desktop: a round booking button rests in the corner and unfolds
   into the same pills on hover or focus; large touch screens keep it open.
   Phones and tablets: a bottom bar. */

.contact-actions {
    display: flex;
    flex-direction: column;
    --ca-surface: #F1ECE3;
    --ca-line: #D6C6B6;
    --ca-whatsapp: #25D366;
}

.contact-actions .action-btn,
.contact-actions .btn1 a {
    gap: 8px;
    border-radius: 999px;
    font: inherit;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-actions .bwa,
.contact-actions .bca {
    border: 1px solid var(--ca-line);
    background: var(--warm-white);
    color: var(--espresso);
}

.contact-actions .bwa .ff-icon {
    box-sizing: border-box;
    flex: none;
    border-radius: 50%;
    background: var(--ca-whatsapp);
    color: #fff;
}

.contact-actions .btn1 a {
    background: var(--terracotta-ink);
    color: var(--warm-white);
}

.contact-actions .bwa:hover,
.contact-actions .bca:hover {
    border-color: #76513B;
    background: var(--warm-white);
    color: var(--espresso);
}

.contact-actions .btn1 a:hover,
.contact-actions .btn1 a:focus-visible {
    background: var(--espresso);
    color: var(--warm-white);
}

.contact-actions .action-btn:focus-visible,
.contact-actions .btn1 a:focus-visible {
    outline: 2px solid var(--espresso);
    outline-offset: 2px;
}

.contact-actions .bwa::after,
.contact-actions .bca::after,
.contact-actions .btn1 a::after {
    white-space: nowrap;
}

.contact-actions .dropdown {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    border-radius: 14px;
    background: var(--warm-white);
    border: 1px solid var(--sand-deep);
    box-shadow: 0 12px 30px rgba(45, 31, 23, 0.14);
}

.contact-actions .menu-item a {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--espresso);
}

.contact-actions .menu-item a:hover {
    background: var(--tile);
}

.contact-actions .sub {
    color: var(--text-soft);
    font-size: 0.9375rem;
    line-height: 1.4;
}

@media (min-width: 1200px) {
    .contact-actions {
        top: auto;
        bottom: 28px;
        right: 28px;
        align-items: flex-end;
        padding: 10px;
        border-radius: 32px;
        background: var(--ca-surface);
        box-shadow: 0 0 0 1px rgba(45, 31, 23, 0.07), 0 18px 44px rgba(45, 31, 23, 0.22);
        transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    }

    .contact-actions .action {
        margin-bottom: 6px;
    }

    .contact-actions .action-btn,
    .contact-actions .btn1 a {
        justify-content: flex-start;
        gap: 12px;
        width: 248px;
        height: 52px;
        padding: 0 18px 0 14px;
        font-size: 0.9375rem;
    }

    .contact-actions .bwa .ff-icon {
        width: 26px;
        height: 26px;
        padding: 5px;
    }

    .contact-actions .bca .ff-icon,
    .contact-actions .btn1 a .ff-icon {
        width: 22px;
        height: 22px;
        margin-inline: 2px;
    }

    .contact-actions .bwa::after { content: "WhatsApp"; }
    .contact-actions .bca::after { content: "Call us"; }
    .contact-actions .btn1 a::after { content: "Book an appointment"; }

    .contact-actions .dropdown {
        width: max-content;
        right: calc(100% + 14px);
    }
}

/* With a pointer that can hover, the card rests folded to the round
   booking button alone (an open numbers panel also holds it open) */
@media (min-width: 1200px) and (hover: hover) {
    .contact-actions .action {
        max-height: 60px;
        opacity: 1;
        transition: max-height 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
    }

    .contact-actions:not(:hover):not(:focus-within):not(:has(.dropdown.open)) {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .contact-actions:not(:hover):not(:focus-within):not(:has(.dropdown.open)) .action {
        max-height: 0;
        margin-bottom: 0;
        opacity: 0;
        overflow: hidden;
    }

    .contact-actions:not(:hover):not(:focus-within):not(:has(.dropdown.open)) .btn1 a {
        width: 60px;
        height: 60px;
        justify-content: center;
        gap: 0;
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 12px 28px rgba(45, 31, 23, 0.26);
    }

    .contact-actions:not(:hover):not(:focus-within):not(:has(.dropdown.open)) .btn1 a::after {
        content: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .contact-actions,
        .contact-actions .action {
            transition: none;
        }
    }
}

/* Phones and tablets: a bottom bar of three labelled pills */
@media (max-width: 1199.98px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .contact-actions {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        gap: 6px;
        padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--ca-line);
        border-radius: 0;
        background: var(--ca-surface);
        box-shadow: 0 -6px 20px rgba(45, 31, 23, 0.06);
    }

    .contact-actions > * {
        min-width: 0;
    }

    .contact-actions > .action:first-child { flex: 1.3; }
    .contact-actions > .action:nth-child(2) { flex: 0.8; }
    .contact-actions > .btn1 { flex: 1; }

    .contact-actions .action-btn,
    .contact-actions .btn1 a {
        width: 100%;
        height: 44px;
        padding: 0 8px;
        font-size: 0.8125rem;
    }

    .contact-actions .bwa .ff-icon {
        width: 22px;
        height: 22px;
        padding: 4px;
    }

    .contact-actions .bca .ff-icon,
    .contact-actions .btn1 a .ff-icon {
        width: 18px;
        height: 18px;
    }

    .contact-actions .bwa::after { content: "WhatsApp"; }
    .contact-actions .bca::after { content: "Call"; }
    .contact-actions .btn1 a::after { content: "Book"; }

    /* The numbers panel spans the bar, not just the Call pill: one row
       per line, team on the left and number on the right */
    .contact-actions .action {
        position: static;
    }

    .contact-actions .dropdown {
        right: 10px;
        left: 10px;
        top: auto;
        bottom: calc(100% + 8px);
        width: auto;
        padding: 6px;
        border-radius: 18px;
        transform: none;
        white-space: normal;
    }

    .contact-actions .dropdown .menu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .contact-actions .menu-item + .menu-item {
        border-top: 1px solid var(--sand);
    }

    .contact-actions .menu-item a {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 56px;
        padding: 10px 14px;
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .contact-actions .sub {
        font-size: 0.8125rem;
        font-weight: 400;
        line-height: 1.35;
        white-space: normal;
    }
}

/* Tablets: same panel, centred and kept to a comfortable width */
@media (min-width: 600px) and (max-width: 1199.98px) {
    .contact-actions .dropdown {
        right: auto;
        left: 50%;
        width: 460px;
        transform: translateX(-50%);
    }
}

/* ---------- Inner page header: a colour field title beside a photo ---------- */

section:has(> .banner > img) {
    padding: var(--gap) var(--gap) 0;
}

.banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(260px, 30vw, 500px));
    gap: var(--gap);
    min-height: clamp(240px, 22vw, 320px);
}

.banner .banner_cont {
    display: flex;
    align-items: flex-end;
    padding: var(--space-l) var(--tile-pad) var(--tile-pad) var(--in);
    border-radius: var(--tile-radius);
}

.banner .banner_cont .container {
    padding: 0;
    margin: 0;
}

.banner h1,
.banner p.ff-banner-title,
.banner p.ff-banner-title {
    max-width: 16em;
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.banner > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: var(--tile-radius);
    contain: size;
}

/* Blog articles repeat their photo below the title: the header is one title panel */
body:has(.blog-hero-img) .banner {
    grid-template-columns: 1fr;
    min-height: 0;
}

body:has(.blog-hero-img) .banner > img {
    display: none;
}

body:has(.blog-hero-img) .banner h1,
body:has(.blog-hero-img) .banner p.ff-banner-title,
body:has(.blog-hero-img) .banner p.ff-banner-title {
    max-width: 24em;
    font-size: clamp(1.6rem, 2.2vw, 2.25rem);
}

@media (max-width: 767px) {
    .banner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .banner .banner_cont {
        min-height: 180px;
        padding: 40px var(--in) 28px;
    }

    .banner > img {
        aspect-ratio: 16 / 7;
        height: auto;
        contain: none;
    }
}

/* Breadcrumb */
.q-link {
    padding: 22px 0 0;
}

.q-link ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
    font-size: 0.875rem;
    color: var(--text-soft);
}

.q-link li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: var(--soft-beige);
}

.q-link li a {
    color: var(--text-soft);
}

.q-link li a:hover {
    color: var(--espresso);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.q-link li:last-child {
    color: var(--espresso);
    font-weight: 500;
}

@media (max-width: 767px) {
    .q-link li a {
        display: inline-block;
        padding: 12px 0;
    }
}

/* ---------- Service detail and content pages ---------- */

.service-details {
    padding-bottom: var(--space-l);
}

.service-details.pt-4 {
    padding-top: 32px !important;
}

.service-details h2 {
    font-size: clamp(1.55rem, 2.3vw, 2rem);
    margin-bottom: 14px;
}

.service-details .col-md-9 > h2:first-child,
.service-details > .container > h2:first-child {
    font-size: clamp(1.3rem, 1.8vw, 1.55rem);
    font-weight: 500;
}

.service-details h2.mt-4,
.service-details h2.mt-3 {
    margin-top: 48px !important;
}

.service-details h3 {
    font-size: 1.22rem;
    margin: 30px 0 10px;
}

.service-details h4 {
    font-size: 1.12rem;
}

/* Comfortable reading width: about 70 characters a line */
.service-details .col-md-9 > *:not(.row):not(.blog-table-wrap):not(.blog-hero-img):not(.previous-blogs),
.service-details > .container > .cont,
.service-details > .container > .items-list,
.service-details > .container > p,
.service-details .col-md-6 > p,
.service-details .col-md-10 > p,
.blog-detail .cont > *:not(.blog-table-wrap) {
    max-width: 39em;
}

.cont p {
    margin-bottom: 1em;
}

.service-details > .container > b,
.service-details .col-md-9 > b {
    display: block;
    max-width: 32em;
    font-weight: 400;
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.items-list ul {
    margin: 10px 0 8px;
}

.items-list li {
    position: relative;
    padding: 12px 0 12px 24px;
    border-top: 1px solid var(--sand);
}

.items-list li:first-child {
    border-top: 0;
}

.items-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 24px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-ink);
}

.items-list li b {
    font-weight: 500;
}

/* Lists whose items open with a bold name read like a definition list */
@media (min-width: 768px) {
    .service-details .items-list li:has(> b:first-child):not(:has(> :nth-child(2))) {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        column-gap: 28px;
        padding-left: 0;
    }

    .service-details .items-list li:has(> b:first-child):not(:has(> :nth-child(2)))::before {
        display: none;
    }

    .service-details .col-md-9 > .items-list {
        max-width: 46em;
    }
}

/* On phones the bold name sits on its own line above its description */
@media (max-width: 767px) {
    .items-list li > b:first-child {
        display: block;
    }
}

/* Sidebar list of services, in a tile */
.service-details .col-md-3 {
    align-self: flex-start;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.service-details .col-md-3 > h4 {
    margin: 0 !important;
    padding: 22px 22px 10px;
    border-radius: var(--tile-radius) var(--tile-radius) 0 0;
    background: var(--section-tint);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--espresso);
    letter-spacing: 0;
}

.service-details .col-md-3 > .items-thum {
    padding: 0 10px 12px;
    border-radius: 0 0 var(--tile-radius) var(--tile-radius);
    background: var(--section-tint);
}

.service-details .items-thum figure {
    display: none;
}

.service-details .items-thum li h3 {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--body-text);
}

.service-details .items-thum li a:hover h3 {
    background: rgba(255, 255, 255, 0.6);
    color: var(--espresso);
}

.service-details .items-thum li a.active h3 {
    background: var(--warm-white);
    color: var(--espresso);
    font-weight: 500;
    box-shadow: inset 3px 0 0 var(--accent), 0 1px 2px rgba(45, 31, 23, 0.08);
}

@media (max-width: 991.98px) {
    .service-details .items-thum li h3 {
        padding: 12px;
    }
}

.service-details .col-md-9 .row .col-md-6 img {
    border-radius: var(--tile-radius);
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.service-details .col-md-9 .row .col-md-6 h2 {
    font-size: 1.35rem;
    font-weight: 500;
}

.icon-info img {
    width: 84px;
}

@media (max-width: 767px) {
    .icon-info img {
        width: 66px;
        margin-bottom: 10px;
    }
}

.weekly-topics .row {
    row-gap: 12px;
    --bs-gutter-x: 12px;
}

.weekly-topics .list {
    height: 100%;
    padding: 22px 24px;
    border-radius: var(--tile-radius);
    background: var(--section-tint);
}

.weekly-topics h4 {
    font-size: 1.1rem;
}

.weekly-topics h4 span {
    display: block;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.weekly-topics li {
    position: relative;
    padding: 4px 0 4px 18px;
}

.weekly-topics li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-ink);
}

.subPage-contact ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.subPage-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--tile);
}

.subPage-contact a {
    text-decoration: none !important;
}

.service-details .row.align-items-center img {
    border-radius: var(--tile-radius);
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
}

/* Schools page: each service block is a tile */
.school-service-main .service-details {
    padding: 0 var(--gap);
    margin-top: var(--gap);
}

.school-service-main .service-details > .container {
    padding-top: var(--tile-pad);
    padding-bottom: var(--tile-pad);
    border-radius: var(--tile-radius);
    background: var(--tile);
}

.school-service-main .service-details:nth-child(even) > .container {
    background: var(--sage-tint);
}

.school-service-main .service-details:nth-child(even) .row {
    flex-direction: row-reverse;
}

.school-service-main .service-details img {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.school-service-main .service-details .col-md-6:last-child {
    padding-left: clamp(12px, 3vw, 44px);
}

.school-service-main .service-details:nth-child(even) .col-md-6:last-child {
    padding-left: 12px;
    padding-right: clamp(12px, 3vw, 44px);
}

/* ---------- Team ---------- */

.our-team {
    background: var(--warm-white);
}

.subLinks {
    position: sticky;
    top: calc(var(--header-h) + 8px);
    z-index: 100;
    padding: 14px 0;
    margin-bottom: 8px;
}

.subLinks ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--warm-white);
    box-shadow: 0 0 0 1px var(--sand-deep), 0 8px 24px rgba(45, 31, 23, 0.08);
}

.subLinks a {
    display: block;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.subLinks a:hover {
    background: var(--tile);
    color: var(--espresso);
}

.subLinks a.active {
    background: var(--espresso);
    color: var(--warm-white);
}

.our-team .container > section {
    padding-top: 40px;
    scroll-margin-top: calc(var(--header-h) + 80px);
}

.our-team h2 {
    margin-bottom: 24px !important;
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
}

.our-team .row {
    row-gap: 36px;
    --bs-gutter-x: 20px;
}

/* Portraits stay modest: four across on laptops, five on wide screens */
@media (min-width: 992px) {
    .our-team .row > .col-md-4 {
        width: 25%;
    }
}

@media (min-width: 1400px) {
    .our-team .row > .col-md-4 {
        width: 20%;
    }
}

.our-team .list a {
    display: block;
    color: var(--espresso);
}

.our-team .list figure {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--tile-radius);
    background: var(--blue-tint);
}

.our-team .list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

.our-team .list h3 {
    margin: 16px 0 0;
    font-size: 1.0625rem;
}

.our-team .list h3 i {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-soft);
    letter-spacing: 0;
}

.our-team .list h3 span {
    display: block;
    margin-top: 6px;
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--blue-ink);
    letter-spacing: 0;
}

@media (max-width: 767px) {
    .subLinks {
        position: static;
    }

    .subLinks ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .subLinks a {
        white-space: nowrap;
        padding: 12px 18px;
    }

    .our-team .row > .col-md-4 {
        width: 50%;
    }

    .our-team .list h3 {
        font-size: 1rem;
    }
}

/* Team profile */
.team-details {
    padding-bottom: var(--space-l);
}

.team-details .cont {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 12px 12px 22px;
    border-radius: var(--tile-radius);
    background: var(--blue-tint);
}

.team-details .cont figure {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 12px;
}

.team-details .cont figure img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

.team-details .cont > :not(figure) {
    padding-left: 8px;
    padding-right: 8px;
}

.team-details h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}

.team-details .cont h2 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--blue-ink);
    letter-spacing: 0;
}

.team-details .cont ul {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(45, 31, 23, 0.12);
}

.team-details .cont li {
    padding: 3px 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--body-text);
}

.team-details .cont li.li-head {
    font-weight: 500;
    margin-top: 8px;
}

.team-profiles-dis p {
    max-width: 39em;
    margin-bottom: 1.1em;
}

.team-profiles-dis li {
    position: relative;
    max-width: 39em;
    padding: 4px 0 4px 20px;
}

.team-profiles-dis li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-ink);
}

.profile-details section {
    max-width: 39em;
    padding: 18px 0;
    border-top: 1px solid var(--sand-deep);
}

.profile-details .h5 {
    font-size: 1.05rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .team-details .cont {
        position: static;
    }
}

/* ---------- Contact ---------- */

.contact-now {
    padding: var(--space-l) 0;
}

.contact-now .row {
    --bs-gutter-x: clamp(28px, 5vw, 72px);
    row-gap: 36px;
}

.contact-now .col-md-6:first-child {
    padding-top: 8px;
}

.contact-now h2 {
    margin-bottom: 24px !important;
}

.contact-now .items {
    padding: 22px 26px;
    margin-bottom: var(--gap);
    border-radius: var(--tile-radius);
    background: var(--tile);
}

.contact-now .items h4 {
    font-size: 1.12rem;
}

.contact-now .items p {
    line-height: 2.1;
}

.contact-now .items .ff-icon {
    color: var(--accent-ink);
    margin-right: 6px;
}

.contact-now .home-form-main {
    box-shadow: inset 0 0 0 1px var(--sand-deep);
}

/* Map tile, with a sand placeholder while the embed loads */
.map {
    margin: 0 var(--gap) var(--gap);
    min-height: 440px;
    overflow: hidden;
    line-height: 0;
    border-radius: var(--tile-radius);
    background: var(--tile);
}

.map iframe {
    width: 100%;
    height: 440px;
    filter: saturate(0.6) sepia(0.06);
}

/* ---------- Blog index ---------- */

.blog-list {
    background: transparent !important;
    padding-top: 36px !important;
}

.blog-list h2 {
    margin-bottom: 28px !important;
}

.blog-list .row {
    row-gap: 20px;
}

.blog-card a {
    display: block;
    height: 100%;
    color: var(--espresso);
}

.blog-card figure {
    overflow: hidden;
    border-radius: var(--tile-radius);
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px 2px 0;
}

.blog-meta {
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.9375rem;
}

.blog-card h3 {
    font-size: 1.18rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card a:hover h3 {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.blog-card p {
    color: var(--body-text);
    font-size: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* ---------- Blog article ---------- */

.blog-detail .col-md-9 > h2:first-of-type {
    font-size: clamp(1.3rem, 1.8vw, 1.5rem);
    font-weight: 500;
}

.blog-hero-img {
    margin: 20px 0 34px;
    overflow: hidden;
    border-radius: var(--tile-radius);
}

.blog-hero-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-detail .cont h2 {
    margin-top: 44px;
    font-size: clamp(1.4rem, 2.1vw, 1.75rem);
}

.blog-detail .cont > p:first-child strong {
    display: block;
    padding: 22px 26px;
    border-radius: var(--tile-radius);
    background: var(--tile);
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.65;
}

.numbered-list ol {
    padding-left: 1.4em;
    margin: 12px 0 18px;
}

.numbered-list li {
    padding: 0 0 12px 6px;
}

.numbered-list li::marker {
    font-weight: 500;
    color: var(--accent-ink);
}

.blog-table-wrap {
    overflow-x: auto;
    margin: 24px 0 28px;
    border-radius: var(--tile-radius);
    background: var(--tile);
    padding: 6px;
}

.blog-detail-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    background: var(--warm-white);
    border-radius: 12px;
    overflow: hidden;
}

.blog-detail-table th {
    background: var(--tile);
    color: var(--espresso);
    font-weight: 500;
    text-align: left;
}

.blog-detail-table th,
.blog-detail-table td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--sand);
}

.blog-detail-table tr:last-child td {
    border-bottom: 0;
}

.source-note {
    font-size: 0.875rem;
    color: var(--text-soft);
}

.blog-sources li {
    padding: 0 0 10px;
    font-size: 0.9rem;
    color: var(--text-soft);
    word-break: break-word;
}

/* FAQ as rounded rows with a circled plus */
.blog-faq-accordion {
    margin-top: 16px;
}

.blog-faq-accordion .accordion-item {
    margin-bottom: 8px;
    border: 0;
    border-radius: 14px !important;
    background: var(--tile);
    overflow: hidden;
}

.blog-faq-accordion .accordion-header {
    margin: 0;
}

.blog-faq-accordion .accordion-button {
    padding: 18px 22px;
    background: transparent;
    color: var(--espresso);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.4;
    box-shadow: none;
}

.blog-faq-accordion .accordion-button::after,
.blog-faq-accordion .accordion-button:not(.collapsed)::after {
    width: 28px;
    height: 28px;
    background-size: 12px;
    background-position: center;
    border: 1px solid var(--field-border);
    border-radius: 50%;
    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'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
    transform: none;
}

.blog-faq-accordion .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'%3E%3Cpath d='M3 8h10'/%3E%3C/svg%3E");
}

.blog-faq-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--espresso);
}

.blog-faq-accordion .accordion-body {
    padding: 0 22px 20px;
}

.previous-blogs {
    margin-top: 60px;
    padding-top: 36px;
    border-top: 1px solid var(--sand-deep);
}

.previous-blogs .row {
    row-gap: 12px;
    --bs-gutter-x: 12px;
}

.previous-blog-card {
    height: 100%;
    padding: 20px;
    border-radius: var(--tile-radius);
    background: var(--tile);
    color: var(--espresso);
}

.previous-blog-card:hover {
    background: var(--sand-deep);
    color: var(--espresso);
}

.previous-blog-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    color: var(--text-soft);
}

.previous-blog-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.blog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 22px 12px 14px;
    border-radius: var(--tile-radius);
    background: var(--tile);
}

.blog-sidebar h4 {
    padding: 0 10px;
    font-size: 0.95rem;
}

.blog-sidebar .items-thum li a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.blog-sidebar .items-thum li a:hover {
    background: var(--warm-white);
    color: var(--espresso);
}

@media (max-width: 767px) {
    .blog-sidebar {
        display: none;
    }
}

/* ---------- Privacy, thank you, 404 ---------- */

.privacy-policy {
    padding-top: 52px !important;
}

.privacy-policy .container > * {
    max-width: 46em;
}

.privacy-policy ol {
    padding-left: 1.2em;
}

.privacy-policy ol > li {
    padding-top: 26px;
}

.privacy-policy ol > li::marker {
    font-weight: 500;
    color: var(--accent-ink);
}

.privacy-policy h2 {
    font-size: 1.3rem;
    font-weight: 500;
}

.privacy-policy h3 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-soft);
    letter-spacing: 0;
}

.privacy-policy ul > li {
    position: relative;
    padding: 3px 0 3px 20px;
}

.privacy-policy ul > li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-ink);
}

.thankyou-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    margin: var(--gap) var(--gap) 0;
    padding: var(--space-l) var(--in);
    border-radius: var(--tile-radius);
    background: var(--tile);
}

.thankyou-box {
    width: 100%;
    max-width: 620px;
    padding: 46px 34px;
    border-radius: var(--tile-radius);
    background: var(--warm-white);
    text-align: center;
}

.tick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--sage-tint);
    color: var(--sage-ink);
    font-size: 32px;
}

.thankyou-box h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.whatsapp-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.1rem;
    color: var(--espresso);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

.no-index {
    padding: var(--space-xl) 0 !important;
}

.no-index h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.no-index h2 {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-soft);
    letter-spacing: 0;
}

/* ---------- Zoho form on phones: labels sit inside the fields ----------
   Placeholders are copied from each label by includes/global-script.php.
   The labels stay in the markup for screen readers, only visually hidden. */
.home-form-main #crmWebToEntityForm ::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

/* Until a service is chosen, the select's prompt matches the placeholders */
.home-form-main #crmWebToEntityForm .zcwf_col_fld_slt:has(option[value="-None-"]:checked) {
    color: var(--text-soft) !important;
}

@media (min-width: 768px) {
    .home-form-main #crmWebToEntityForm ::placeholder {
        color: transparent;
    }
}

@media (max-width: 767px) {
    .home-form-main #crmWebToEntityForm form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
    }

    .home-form-main #crmWebToEntityForm form > * {
        grid-column: 1 / -1;
    }

    /* Names, mobile and email pair up; the longer prompts keep the full width */
    .home-form-main #crmWebToEntityForm form > .zcwf_row:has(#First_Name),
    .home-form-main #crmWebToEntityForm form > .zcwf_row:has(#Last_Name),
    .home-form-main #crmWebToEntityForm form > .zcwf_row:has(#Mobile),
    .home-form-main #crmWebToEntityForm form > .zcwf_row:has(#Email) {
        grid-column: auto;
    }

    .home-form-main #crmWebToEntityForm .zcwf_col_lab {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        padding: 0 !important;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .home-form-main .zcwf_row {
        margin: 0 0 10px !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 {
        min-height: 48px;
        padding: 12px 14px !important;
    }

    .home-form-main #crmWebToEntityForm .zcwf_col_fld_slt {
        padding-right: 36px !important;
    }
}

/* Revision brief: a full-width header keeps the brand on the page grid. */
.site-header .container.header-inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--in);
}
.site-header .navbar-collapse { min-width: 0; }

/* Shared editorial rhythm and predictable wrapping across public pages. */
main h1, main h2, main h3 { text-wrap: balance; }
main p, main li { overflow-wrap: break-word; }
main figure { max-width: 100%; }
main a:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 4px; }

/* Reserve space for every control at the first desktop breakpoint. */
@media (min-width: 1200px) {
    .header-search { flex: 0 0 140px; width: 140px; min-width: 140px; }
    .nav-book { flex-shrink: 0; }
}
@media (min-width: 1200px) and (max-width: 1339.98px) {
    .site-header .container.header-inner { padding-inline: 24px; gap: 10px; }
    .site-header .nav-link { padding-inline: 9px !important; }
    .header-search { margin-left: 4px; }
    .nav-book { margin-left: 4px; padding-inline: 14px; }
}

/* Desktop header: logo left, links spread across the free width, Search and Book at the right edge. */
@media (min-width: 1200px) {
    .site-header .container.header-inner { padding-inline: clamp(24px, 2.8vw, 56px); }
    .site-header .navbar-collapse { flex: 1 1 auto; display: flex; align-items: center; }
    .site-header .navbar-nav {
        flex: 1 1 auto;
        justify-content: space-between;
        margin-inline: clamp(12px, 2.4vw, 56px) !important;
        gap: 0;
    }
}

/* Google's search widget has its own minimum width: keep it inside its slot so it never covers Book. */
@media (min-width: 1200px) {
    .header-search { flex: 0 1 140px; min-width: 110px; overflow: hidden; border-radius: 999px; }
    .header-search * { max-width: 100% !important; min-width: 0 !important; box-sizing: border-box; }
    .header-search input.gsc-input { width: 100% !important; }
    .nav-book { position: relative; z-index: 1; }
}

/* ---------- One banner for every inner page ----------
   Full width, flush to the screen edges, the same height at each breakpoint:
   450px desktop, 400px tablet, 300px phone. The photo always fills it. The
   :not(#_) adds weight so this wins over the page-by-page overrides. */
body:not(#_) section:has(> .banner.team-hero) { padding: 0 !important; margin: 0 !important; }
body:not(#_) .banner.team-hero:not(.ff-team-banner) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    isolation: isolate;
}
body:not(#_) .banner.team-hero:not(.ff-team-banner) > picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
body:not(#_) .banner.team-hero:not(.ff-team-banner) > img,
body:not(#_) .banner.team-hero:not(.ff-team-banner) > picture > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    contain: none !important;
}
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
}
@media (min-width: 601px) and (max-width: 1199.98px) {
    body:not(#_) .banner.team-hero:not(.ff-team-banner) { height: 400px !important; min-height: 400px !important; max-height: 400px !important; }
}
@media (max-width: 600px) {
    body:not(#_) .banner.team-hero:not(.ff-team-banner) { height: 300px !important; min-height: 300px !important; max-height: 300px !important; }
}

/* Banner title: vertically centred on desktop and tablet, top-left on phones, on every page. */
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont { display: flex !important; align-items: center !important; }
@media (max-width: 600px) {
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont {
        align-items: flex-start !important;
        padding-top: 35px !important;
        padding-bottom: 0 !important;
    }
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* Banner title size and left edge: the same on every page. */
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont h1,
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont p.ff-banner-title { font-size: clamp(2.3rem, 4vw, 3.5rem) !important; line-height: 1.2 !important; }
@media (max-width: 600px) {
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont { padding-left: 0 !important; padding-right: 0 !important; }
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont h1,
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont p.ff-banner-title { font-size: 25px !important; max-width: 85%; }
}

/* ---------- One left edge for every inner page ----------
   Page content and the banner title share a 1160px column, centred; 24px side
   space on phones and 32px on tablets. */
body:not(#_) :is(.ff-neuro-container, .ff-therapy-container, .ff-article-container, .ff-blog-section > .container),
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont .container {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1160px !important;
    margin-inline: auto !important;
    padding-inline: 24px !important;
}
@media (min-width: 601px) {
    body:not(#_) :is(.ff-neuro-container, .ff-therapy-container, .ff-article-container, .ff-blog-section > .container),
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont .container { padding-inline: 32px !important; }
}
@media (min-width: 1200px) {
    body:not(#_) :is(.ff-neuro-container, .ff-therapy-container, .ff-article-container, .ff-blog-section > .container),
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont .container { padding-inline: 0 !important; }
}

/* ---------- One heading scale for every inner page ----------
   Section headings: 28px on phones rising to 38px, regular weight, site brown. */
body:not(#_) :is(.ff-neuro-page, .ff-therapy-page, .ff-about-page, .ff-contact-page, .ff-collab-page, .ff-join-page, .ff-insurance-page, .ff-eap-page, .ff-blog-page, .ff-article-page) h2 {
    font-size: clamp(1.75rem, 2.7vw, 2.4rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    color: #76513B !important;
}

/* Banner title colour and weight: the same on every page. */
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont h1,
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont p.ff-banner-title {
    color: #76513B !important;
    font-weight: 400 !important;
    letter-spacing: -0.025em !important;
}

/* Banner fade: the same soft cream fade from the left on every page, so titles read on any photo. */
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont {
    background-color: transparent !important;
    background-image: linear-gradient(90deg,
        rgba(241, 236, 227, 0.70) 0%,
        rgba(241, 236, 227, 0.45) 30%,
        rgba(241, 236, 227, 0.18) 55%,
        rgba(241, 236, 227, 0) 78%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body:not(#_) .banner.team-hero:not(.ff-team-banner)::before,
body:not(#_) .banner.team-hero:not(.ff-team-banner)::after,
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont::before,
body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont::after { content: none !important; }
@media (max-width: 600px) {
    body:not(#_) .banner.team-hero:not(.ff-team-banner) .banner_cont {
        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%,
            rgba(241, 236, 227, 0) 100%) !important;
    }
}
