/* =========================================================
   Milestone PRC - Site theme (design system)
   Loaded after CSS/style.css on every page and overrides it.

   Tokens
     brand teal   #26ABA3  (decorative, large surfaces)
     teal deep    #127A73  (text + buttons, passes WCAG AA on white)
     amber        #F7AB1E  (small warm highlights only, dark text on it)
   Shape rule
     buttons = full pill, cards = 20px, photos = 24px, inputs = 14px
   Type
     Outfit (display) + Plus Jakarta Sans (body)
   ========================================================= */

:root {
    --teal: #26ABA3;
    --teal-600: #1C958E;
    --teal-700: #127A73;
    --teal-800: #0D5F5A;
    --teal-900: #0A4642;
    --mint-50: #F3FAF9;
    --mint-100: #E5F4F2;
    --mint-200: #CBE9E5;
    --amber: #F7AB1E;
    --amber-100: #FFF3DA;
    --ink: #15313A;
    --ink-2: #4A626B;
    --ink-3: #6E838B;
    --line: #DCEAE8;
    --white: #FFFFFF;
    --bg: #FFFFFF;

    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --r-card: 20px;
    --r-photo: 24px;
    --r-input: 14px;
    --r-pill: 999px;

    --sh-1: 0 1px 2px rgba(13, 95, 90, .06), 0 4px 16px -6px rgba(13, 95, 90, .12);
    --sh-2: 0 2px 4px rgba(13, 95, 90, .05), 0 18px 40px -18px rgba(13, 95, 90, .30);
    --sh-3: 0 30px 60px -24px rgba(13, 95, 90, .38);

    --ease: cubic-bezier(.16, 1, .3, 1);
    --section-y: clamp(64px, 8vw, 112px);
    --header-h: 76px;
}

/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */
html { scroll-padding-top: calc(var(--header-h) + 24px); }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
p, a, li, span, input, select, textarea, button, label, td, th {
    font-family: var(--font-body) !important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}
p { color: var(--ink-2); text-wrap: pretty; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-800); }
img { max-width: 100%; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--mint-200); color: var(--teal-900); }
main { overflow-x: clip; }

.container { max-width: 1240px; }

/* Display scale */
.ms-h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
.ms-h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); font-weight: 700; letter-spacing: -0.025em; }
.ms-lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); color: var(--ink-2); max-width: 60ch; }
.ms-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal-700); margin-bottom: 14px;
}
.ms-section { padding: var(--section-y) 0; }
.ms-section--mint { background: var(--mint-50); }
.ms-section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }
.ms-section-head.text-center { margin-left: auto; margin-right: auto; }
.ms-section-head p { margin-top: 14px; }

/* ---------------------------------------------------------
   Buttons (full pill). Legacy <button><a></a></button> combos
   used across inner pages are restyled further below.
   --------------------------------------------------------- */
.ms-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
    font-weight: 700; font-size: .97rem; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
    cursor: pointer;
}
.ms-btn:active { transform: translateY(1px) scale(.985); }
.ms-btn--primary { background: var(--teal-700); color: #fff !important; box-shadow: 0 10px 24px -12px rgba(18, 122, 115, .7); }
.ms-btn--primary:hover { background: var(--teal-800); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(18, 122, 115, .8); }
.ms-btn--outline { background: transparent; color: var(--teal-800) !important; border-color: var(--mint-200); }
.ms-btn--outline:hover { border-color: var(--teal-700); background: var(--mint-50); }
.ms-btn--light { background: #fff; color: var(--teal-800) !important; }
.ms-btn--light:hover { background: var(--amber-100); transform: translateY(-2px); }
.ms-btn--ghost-light { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.ms-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.ms-link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--teal-700); }
.ms-link-arrow i { transition: transform .25s var(--ease); }
.ms-link-arrow:hover i { transform: translateX(4px); }

/* Legacy pill buttons wrapping an <a> (therapy, about, form pages) */
.hero-banner button, .home-therapies button, .about-milestone button, .new-home-about button,
.about-intro button, .join button, .why-choose button, .home-gallery button {
    background: var(--teal-700) !important; background-image: none !important;
    border: 0 !important; border-radius: var(--r-pill) !important;
    padding: 0 !important; box-shadow: 0 10px 24px -12px rgba(18, 122, 115, .7) !important;
    transition: transform .25s var(--ease), background-color .2s ease !important;
}
.hero-banner button a, .home-therapies button a, .about-milestone button a, .new-home-about button a,
.about-intro button a, .join button a, .why-choose button a, .home-gallery button a {
    display: inline-block; padding: 12px 28px; color: #fff !important; font-weight: 700; font-size: .97rem;
}
.hero-banner button:hover, .home-therapies button:hover, .about-milestone button:hover, .new-home-about button:hover,
.about-intro button:hover, .join button:hover, .why-choose button:hover, .home-gallery button:hover {
    background: var(--teal-800) !important; transform: translateY(-2px);
}
.hero-banner button::after, .home-therapies button::after, .about-milestone button::after, .new-home-about button::after,
.about-intro button::after, .join button::after, .why-choose button::after { display: none; }

/* ---------------------------------------------------------
   Header: topbar scrolls away, nav stays sticky
   --------------------------------------------------------- */
body > header {
    position: sticky; top: -42px; z-index: 1030;
}
.ms-topbar {
    height: 42px; background: var(--teal-900); color: rgba(255, 255, 255, .86); font-size: .86rem;
}
.ms-topbar .container { height: 100%; }
.ms-topbar a, .ms-topbar span { color: rgba(255, 255, 255, .86); display: inline-flex; align-items: center; gap: 6px; }
.ms-topbar a:hover { color: #fff; }
.ms-topbar__info { display: flex; gap: 28px; }
.ms-topbar__social { display: flex; gap: 14px; font-size: 1.05rem; }

.navbar.ms-nav {
    position: relative !important; top: auto !important;
    padding: 0 !important; min-height: var(--header-h);
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px);
    border-bottom: 1px solid transparent; box-shadow: none;
    transition: box-shadow .3s ease, border-color .3s ease;
    z-index: auto;
}
.ms-scrolled .navbar.ms-nav { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(13, 95, 90, .55); }
.ms-nav .navbar-brand { padding: 10px 0; margin-right: 24px; }
.ms-nav .navbar-brand img { width: 170px; height: auto; transition: transform .3s var(--ease); }
.ms-nav .navbar-brand:hover img { transform: scale(1.02); }
.ms-nav .navbar-nav { gap: 2px; }
.ms-nav .nav-link {
    color: var(--ink) !important; font-weight: 600 !important; font-size: .95rem !important;
    padding: 10px 11px !important; border-radius: var(--r-pill);
    transition: color .2s ease, background-color .2s ease;
}
.ms-nav .nav-link::after { display: none !important; }
.ms-nav .nav-link:hover { color: var(--teal-700) !important; background: var(--mint-50); }
.ms-nav .nav-link.active { color: var(--teal-700) !important; background: var(--mint-100); }
.ms-nav .dropdown-toggle::after {
    display: inline-block !important; position: static !important; margin-left: 4px; vertical-align: 2px;
    border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; border-bottom: 0;
    background: none !important; transform: none !important; width: auto !important; height: auto !important;
}
.ms-nav__cta { margin-left: 12px; padding: 11px 22px; }

/* Therapies mega menu */
.ms-nav .ms-mega {
    border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-3);
    padding: 12px; margin-top: 8px !important; max-height: none; overflow: visible;
}
.ms-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 2px 8px; }
.ms-nav .ms-mega .dropdown-item {
    border-radius: 12px; padding: 9px 12px; font-size: .92rem; font-weight: 500; color: var(--ink);
    white-space: normal;
}
.ms-nav .ms-mega .dropdown-item:hover, .ms-nav .ms-mega .dropdown-item.active { background: var(--mint-50); color: var(--teal-700); padding-left: 12px; }
.ms-mega__all {
    display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
    padding: 12px 14px; border-radius: 12px; background: var(--mint-100); font-weight: 700; color: var(--teal-800);
}
.ms-mega__all:hover { background: var(--mint-200); color: var(--teal-900); }

.ms-nav .navbar-toggler { border: 0; padding: 10px; box-shadow: none !important; border-radius: 12px; background: var(--mint-50); }
.ms-burger { display: grid; gap: 5px; width: 22px; }
.ms-burger span { height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.navbar-toggler[aria-expanded="true"] .ms-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .ms-burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .ms-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199.98px) {
    body > header { top: 0; }
    .ms-nav .navbar-collapse {
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        padding: 8px 0 20px;
    }
    .ms-nav .navbar-nav { gap: 0; }
    .ms-nav .nav-link { padding: 12px 14px !important; }
    .ms-nav .ms-mega { box-shadow: none; border: 0; background: var(--mint-50); margin: 4px 0 8px !important; }
    .ms-mega__grid { grid-template-columns: 1fr; }
    .ms-nav__cta { margin: 12px 0 0; width: 100%; }
}
@media (min-width: 1200px) and (max-width: 1320px) {
    .ms-nav .nav-link { padding: 10px 8px !important; font-size: .9rem !important; }
    .ms-nav .navbar-brand img { width: 150px; }
}

/* ---------------------------------------------------------
   Page banner (inner pages use .about-banner)
   --------------------------------------------------------- */
.about-banner {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px) !important;
    background:
        radial-gradient(700px 320px at 92% 10%, rgba(247, 171, 30, .16), transparent 60%),
        radial-gradient(800px 380px at 0% 100%, rgba(38, 171, 163, .18), transparent 60%),
        var(--mint-50) !important;
    border-bottom: 1px solid var(--line);
}
.about-banner::after {
    content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; z-index: -1;
    border-radius: 50%; border: 56px solid rgba(38, 171, 163, .08);
}
.about-banner h1, .about-banner h2 {
    font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem) !important; font-weight: 700 !important;
    letter-spacing: -0.03em; margin: 0; text-transform: none !important;
}
.about-banner p {
    display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0 !important;
    padding: 8px 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line);
    font-size: .9rem !important; font-weight: 600 !important; color: var(--teal-800) !important; text-transform: none !important;
}
@media (min-width: 992px) { .about-banner .col-lg-4 { text-align: right; } .about-banner p { margin-top: 0 !important; } }

/* ---------------------------------------------------------
   Home: hero
   --------------------------------------------------------- */
.ms-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
    background:
        radial-gradient(900px 520px at 100% 0%, rgba(38, 171, 163, .16), transparent 62%),
        radial-gradient(600px 400px at 0% 100%, rgba(247, 171, 30, .12), transparent 60%),
        var(--mint-50);
}
.ms-hero h1 { margin: 0 0 20px; }
.ms-hero h1 em { font-style: normal; color: var(--teal-700); }
.ms-hero .ms-lead { margin-bottom: 30px; }
.ms-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ms-hero__media { position: relative; }
.ms-hero__photo {
    width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; border-radius: 32px; box-shadow: var(--sh-3);
}
.ms-hero__badge {
    position: absolute; left: -28px; bottom: 36px; display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: var(--r-card); padding: 14px 18px 14px 14px; box-shadow: var(--sh-2);
    max-width: 290px;
}
.ms-hero__badge img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.ms-hero__badge strong { display: block; font-family: var(--font-display) !important; font-size: 1rem; line-height: 1.25; }
.ms-hero__badge span { font-size: .84rem; color: var(--ink-2); line-height: 1.35; display: block; }
.ms-hero__chip {
    position: absolute; right: -14px; top: 28px; background: var(--amber); color: var(--ink);
    border-radius: var(--r-pill); padding: 10px 16px; font-weight: 700; font-size: .88rem; box-shadow: var(--sh-2);
    display: inline-flex; align-items: center; gap: 8px;
}
@media (max-width: 991.98px) {
    .ms-hero__media { margin-top: 40px; }
    .ms-hero__badge { left: 12px; bottom: 12px; }
    .ms-hero__chip { right: 12px; top: 12px; }
    .ms-hero__photo { aspect-ratio: 4 / 3.6; }
}

/* Credentials strip under the hero */
.ms-trust { padding: 28px 0; border-bottom: 1px solid var(--line); background: #fff; }
.ms-trust__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.ms-trust__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.ms-trust__list i {
    flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: var(--mint-100); color: var(--teal-700); font-size: 1.35rem;
}
@media (max-width: 991.98px) { .ms-trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ms-trust__list { grid-template-columns: 1fr; } }

/* About split */
.ms-about__media { position: relative; }
.ms-about__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-photo); }
.ms-about__media::before {
    content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--r-photo);
    background: var(--mint-100); z-index: -1;
}
.ms-about { position: relative; isolation: isolate; }
.ms-about p + p { margin-top: 4px; }
.ms-about .ms-btn { margin-top: 18px; }
@media (max-width: 991.98px) { .ms-about__media { margin-bottom: 44px; } .ms-about__media::before { inset: 16px -12px -16px 12px; } }

/* Therapy services grid */
.ms-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ms-service {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-card);
    border: 1px solid var(--line); overflow: hidden; color: inherit;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.ms-service:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--mint-200); color: inherit; }
.ms-service__img { aspect-ratio: 16 / 11; overflow: hidden; }
.ms-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ms-service:hover .ms-service__img img { transform: scale(1.06); }
.ms-service__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.ms-service h3 { font-size: 1.14rem; font-weight: 700; margin: 0 0 8px; }
.ms-service p {
    font-size: .92rem; line-height: 1.6; margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ms-service .ms-link-arrow { margin-top: auto; font-size: .92rem; }
.ms-service--feature { grid-column: span 2; grid-row: span 2; }
.ms-service--feature .ms-service__img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.ms-service--feature h3 { font-size: 1.5rem; }
.ms-service--feature p { -webkit-line-clamp: 4; font-size: 1rem; }
@media (max-width: 1099.98px) { .ms-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
    .ms-services__grid { grid-template-columns: 1fr; }
    .ms-service--feature { grid-column: auto; grid-row: auto; }
}

/* Founder (dark teal feature) */
.ms-founder {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    background: radial-gradient(800px 400px at 100% 0%, rgba(38, 171, 163, .45), transparent 60%), var(--teal-900);
}
.ms-founder h2, .ms-founder h3 { color: #fff; }
.ms-founder p { color: rgba(255, 255, 255, .82); }
.ms-founder .ms-eyebrow { color: var(--amber); }
.ms-founder__video {
    width: 100%; border-radius: var(--r-photo); display: block; background: #000; aspect-ratio: 16 / 10; object-fit: cover;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.ms-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 28px 0 32px; }
.ms-creds li {
    display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: .93rem; line-height: 1.4;
}
.ms-creds i { color: var(--amber); font-size: 1.2rem; flex: none; margin-top: 1px; }
@media (max-width: 575.98px) { .ms-creds { grid-template-columns: 1fr; } }

/* How we work */
.ms-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; position: relative; }
.ms-step { position: relative; padding: 0 28px 0 0; }
.ms-step__icon {
    width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem;
    background: #fff; color: var(--teal-700); box-shadow: var(--sh-1); border: 1px solid var(--line); margin-bottom: 22px;
    position: relative; z-index: 1;
}
.ms-steps::before {
    content: ""; position: absolute; top: 32px; left: 32px; right: 64px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--mint-200) 0 10px, transparent 10px 18px);
}
.ms-step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.ms-step p { margin: 0; font-size: .97rem; }
@media (max-width: 767.98px) {
    .ms-steps { grid-template-columns: 1fr; gap: 32px; }
    .ms-steps::before { display: none; }
    .ms-step { padding: 0; }
}

/* Team */
.ms-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ms-member { text-align: left; }
.ms-member__photo { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--mint-100); }
.ms-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.ms-member:hover .ms-member__photo img { transform: scale(1.04); }
.ms-member h3 { font-size: 1.2rem; font-weight: 700; margin: 16px 0 2px; }
.ms-member span { color: var(--teal-700); font-weight: 600; font-size: .92rem; }
@media (max-width: 767.98px) { .ms-team__grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* Testimonials */
.ms-quotes { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }
.ms-quote {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px;
    display: flex; flex-direction: column; gap: 18px; margin: 0;
}
.ms-quote:first-child { background: var(--teal-700); border-color: var(--teal-700); }
.ms-quote:first-child p, .ms-quote:first-child figcaption strong { color: #fff; }
.ms-quote:first-child figcaption span { color: rgba(255, 255, 255, .75); }
.ms-quote:first-child .ms-quote__stars { color: var(--amber); }
.ms-quote__stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }
.ms-quote blockquote { margin: 0; }
.ms-quote p { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.65; }
.ms-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.ms-quote figcaption .ms-avatar {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
    background: var(--mint-100); color: var(--teal-800); font-family: var(--font-display) !important;
}
.ms-quote:first-child .ms-avatar { background: rgba(255, 255, 255, .16); color: #fff; }
.ms-quote figcaption strong { display: block; line-height: 1.2; }
.ms-quote figcaption span { font-size: .86rem; color: var(--ink-3); }
@media (max-width: 991.98px) { .ms-quotes { grid-template-columns: 1fr; } }

/* Latest articles on home */
.ms-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991.98px) { .ms-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .ms-posts { grid-template-columns: 1fr; } }
.ms-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.ms-head-row .ms-section-head { margin-bottom: 0; }

/* Gallery mosaic */
.ms-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.ms-mosaic figure { margin: 0; border-radius: var(--r-photo); overflow: hidden; }
.ms-mosaic figure:first-child { grid-row: span 2; }
.ms-mosaic figure:nth-child(4) { grid-column: span 2; }
.ms-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ms-mosaic figure:hover img { transform: scale(1.05); }
@media (max-width: 767.98px) {
    .ms-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; }
    .ms-mosaic figure:first-child { grid-column: span 2; grid-row: auto; }
    .ms-mosaic figure:nth-child(4) { grid-column: auto; }
}

/* ---------------------------------------------------------
   Enquiry / contact form
   --------------------------------------------------------- */
.enquiry-form, .contact-form-page { padding: var(--section-y) 0 !important; background: var(--mint-50) !important; }
.ms-enquiry {
    display: grid; grid-template-columns: 1fr 1.05fr; background: #fff; border-radius: 28px; overflow: hidden;
    box-shadow: var(--sh-2); border: 1px solid var(--line);
}
.ms-enquiry__aside {
    position: relative; isolation: isolate; color: #fff; padding: clamp(28px, 4vw, 48px);
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px;
}
.ms-enquiry__aside img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; z-index: -2; border-radius: 0 !important; aspect-ratio: auto !important; }
.ms-enquiry__aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 70, 66, .1) 20%, rgba(10, 70, 66, .92) 100%); }
.ms-enquiry__aside h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem) !important; margin-bottom: 12px; }
.ms-enquiry__aside p { color: rgba(255, 255, 255, .85) !important; margin-bottom: 20px; }
.ms-enquiry__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ms-enquiry__contact li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-weight: 600; font-size: .95rem; }
.ms-enquiry__contact a { color: #fff; }
.ms-enquiry__contact i { color: var(--amber); font-size: 1.2rem; }
.ms-enquiry__form { padding: clamp(28px, 4vw, 48px); }
.ms-enquiry__form h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.ms-enquiry__form > p { margin-bottom: 22px; }
@media (max-width: 991.98px) { .ms-enquiry { grid-template-columns: 1fr; } .ms-enquiry__aside { min-height: 300px; } }

/* Shared field styles for contact_form.php (and legacy form pages) */
.ms-field { margin-bottom: 16px; }
.ms-field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea,
.contact-form-page input, .contact-form-page select, .contact-form-page textarea,
.ms-form input, .ms-form select, .ms-form textarea {
    width: 100%; height: auto !important; min-height: 50px; margin: 0 !important;
    padding: 13px 16px !important; font-size: .98rem !important;
    border: 1.5px solid var(--line) !important; border-radius: var(--r-input) !important;
    background: #fff !important; color: var(--ink) !important;
    transition: border-color .2s ease, box-shadow .2s ease !important; outline: none;
}
.enquiry-form textarea, .contact-form-page textarea, .ms-form textarea { min-height: 120px; resize: vertical; }
.enquiry-form select, .contact-form-page select, .ms-form select {
    appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%) !important;
    background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px !important;
    background-size: 6px 6px !important; background-repeat: no-repeat !important;
}
.enquiry-form input::placeholder, .enquiry-form textarea::placeholder,
.contact-form-page input::placeholder, .contact-form-page textarea::placeholder { color: #7E9198; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus,
.contact-form-page input:focus, .contact-form-page select:focus, .contact-form-page textarea:focus,
.ms-form input:focus, .ms-form select:focus, .ms-form textarea:focus {
    border-color: var(--teal) !important; box-shadow: 0 0 0 4px rgba(38, 171, 163, .16) !important;
}
.enquiry-form button[type="submit"], .contact-form-page button[type="submit"] {
    width: 100% !important; padding: 15px 26px !important; border-radius: var(--r-pill) !important; border: 0 !important;
    background: var(--teal-700) !important; background-image: none !important; color: #fff !important;
    font-weight: 700 !important; font-size: 1rem !important; box-shadow: 0 12px 26px -12px rgba(18, 122, 115, .75) !important;
    transition: transform .25s var(--ease), background-color .2s ease !important;
}
.enquiry-form button[type="submit"]:hover, .contact-form-page button[type="submit"]:hover { background: var(--teal-800) !important; transform: translateY(-2px); }
.enquiry-form button::after, .contact-form-page button::after { display: none !important; }

/* ---------------------------------------------------------
   Inner pages: therapy template
   --------------------------------------------------------- */
.therapy-intro {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(56px, 7vw, 96px) 0 !important;
    background:
        radial-gradient(800px 420px at 100% 0%, rgba(38, 171, 163, .55), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(247, 171, 30, .16), transparent 60%),
        var(--teal-900) !important;
}
.therapy-intro h1 { color: #fff !important; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); margin-bottom: 18px; }
.therapy-intro p { color: rgba(255, 255, 255, .84) !important; font-size: 1.05rem; }
.therapy-intro img {
    width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-photo);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.therapy-intro a { color: var(--amber); }

.what_is_early_intervention, .our-program, .faq-section-therapies, .why-choose {
    padding: clamp(48px, 6vw, 88px) 0 !important;
}
.what_is_early_intervention h2, .our-program h2, .why-choose h2 {
    font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem) !important; font-weight: 700; color: var(--ink) !important; margin-bottom: 14px;
}
.what_is_early_intervention h4 { font-size: 1.15rem !important; color: var(--ink) !important; }
.what_is_early_intervention > .container > .row > .col-12 > p,
.our-program p, .why-therapy p, .who-benefit p { max-width: 75ch; }
.what_is_early_intervention .col-box, .our-program .col-box {
    background: #fff !important; background-image: none !important; border: 1px solid var(--line) !important;
    border-radius: var(--r-card) !important; padding: 28px 24px !important; box-shadow: var(--sh-1) !important;
    text-align: left !important; position: relative; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease) !important;
}
.what_is_early_intervention .col-box::before, .our-program .col-box::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--amber));
}
.what_is_early_intervention .col-box:hover, .our-program .col-box:hover { transform: translateY(-4px); box-shadow: var(--sh-2) !important; }
.what_is_early_intervention .col-box h4, .our-program .col-box h4 { color: var(--ink) !important; margin-bottom: 8px !important; font-size: 1.15rem !important; }
.what_is_early_intervention .col-box p, .our-program .col-box p { color: var(--ink-2) !important; font-size: .95rem !important; font-weight: 400 !important; margin: 0; }

.why-therapy, .who-benefit { padding: clamp(48px, 6vw, 88px) 0 !important; background: var(--mint-50) !important; }
.who-benefit { background: #fff !important; }
.who-benefit + .who-benefit { padding-top: 0 !important; }
.why-therapy h3, .who-benefit h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem) !important; font-weight: 700; margin-bottom: 14px; }
.why-therapy h4 { color: var(--ink) !important; }
.why-therapy img, .who-benefit img { border-radius: var(--r-photo); width: 100%; object-fit: cover; box-shadow: var(--sh-2); }

/* Check-mark lists across content sections */
.why-therapy ul, .who-benefit ul, .our-program ul, .what_is_early_intervention ul, .why-choose ul, .about-renu ul {
    list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px;
}
.why-therapy li, .who-benefit li, .our-program li, .what_is_early_intervention li, .why-choose li, .about-renu li {
    position: relative; padding-left: 36px; color: var(--ink-2); line-height: 1.6;
}
.why-therapy li::before, .who-benefit li::before, .our-program li::before, .what_is_early_intervention li::before, .why-choose li::before, .about-renu li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--ico-check) center / 13px no-repeat, var(--mint-100);
}
.who-benefit ul { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.who-benefit li { background: var(--mint-50); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px 52px; }
.who-benefit li::before { left: 16px; top: 17px; background: var(--ico-check) center / 13px no-repeat, #fff; }

/* FAQ accordions */
.faq-section, .faq-section-therapies { background: #fff; }
.faq-section h2, .faq-section-therapies > .container > .row > div > h2 {
    font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem) !important; font-weight: 700 !important; margin-bottom: 20px;
}
.faq-section img { border-radius: var(--r-photo) !important; }
.accordion { --bs-accordion-border-color: transparent; --bs-accordion-bg: transparent; }
.faq-section .accordion-item, .faq-section-therapies .accordion-item, .ms-faq .accordion-item {
    border: 1px solid var(--line) !important; border-radius: 18px !important; overflow: hidden; background: #fff;
    margin: 0 0 12px !important; transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-section .accordion-item:has(.accordion-button:not(.collapsed)),
.faq-section-therapies .accordion-item:has(.accordion-button:not(.collapsed)),
.ms-faq .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--mint-200) !important; box-shadow: var(--sh-1); }
.faq-section .accordion-header, .faq-section-therapies .accordion-header, .ms-faq .accordion-header {
    border: 0 !important; margin: 0 !important; border-radius: 0 !important;
}
.faq-section .accordion-button, .faq-section-therapies .accordion-button, .ms-faq .accordion-button {
    font-family: var(--font-display) !important; font-size: 1.06rem !important; font-weight: 600 !important; color: var(--ink) !important;
    padding: 20px 22px; background: #fff !important; box-shadow: none !important; border-radius: 0 !important; line-height: 1.4;
}
.faq-section .accordion-button:not(.collapsed), .faq-section-therapies .accordion-button:not(.collapsed), .ms-faq .accordion-button:not(.collapsed) {
    color: var(--teal-800) !important; background: var(--mint-50) !important;
}
.faq-section .accordion-button::after, .faq-section-therapies .accordion-button::after, .ms-faq .accordion-button::after,
.faq-section .accordion-button:not(.collapsed)::after, .faq-section-therapies .accordion-button:not(.collapsed)::after, .ms-faq .accordion-button:not(.collapsed)::after {
    content: ""; background: var(--ico-plus) center / 16px no-repeat, var(--mint-100) !important;
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    transition: transform .3s var(--ease), background-color .2s;
}
.faq-section .accordion-button:not(.collapsed)::after, .faq-section-therapies .accordion-button:not(.collapsed)::after, .ms-faq .accordion-button:not(.collapsed)::after {
    transform: rotate(45deg); background: var(--ico-plus-white) center / 16px no-repeat, var(--teal-700) !important;
}
.faq-section .accordion-body, .faq-section-therapies .accordion-body, .ms-faq .accordion-body {
    font-size: 1rem !important; color: var(--ink-2); padding: 4px 22px 22px; background: var(--mint-50); line-height: 1.7;
}
@media (max-width: 991.98px) { .faq-section .accordion-button { font-size: 1rem !important; } .faq-section .accordion-body { font-size: .97rem !important; } }

/* Therapies listing page + legacy therapy cards */
.home-therapies { padding: var(--section-y) 0 !important; background: var(--mint-50) !important; }
.home-therapies > .container > .row:first-child > div { padding-top: 0 !important; }
.home-therapies h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem) !important; color: var(--ink) !important; margin-bottom: 12px; }
.home-therapies .col-box {
    background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--r-card) !important;
    padding: 0 !important; overflow: hidden; box-shadow: none !important; display: flex; flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease) !important;
}
.home-therapies .col-box:hover { transform: translateY(-6px); box-shadow: var(--sh-2) !important; }
.home-therapies .img-box { overflow: hidden; aspect-ratio: 16 / 11; }
.home-therapies .img-box img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; margin: 0 !important; }
.home-therapies .col-box h2, .home-therapies .col-box h5 { font-size: 1.14rem !important; font-weight: 700; padding: 20px 20px 0; margin-bottom: 8px; }
.home-therapies .col-box p {
    padding: 0 20px; font-size: .92rem; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.home-therapies .col-box button {
    margin: auto 20px 22px; background: transparent !important; box-shadow: none !important; align-self: flex-start;
}
.home-therapies .col-box button a { padding: 0; color: var(--teal-700) !important; }
.home-therapies .col-box button a::after { content: " \2192"; }
.home-therapies .col-box button:hover { background: transparent !important; transform: none; }

/* ---------------------------------------------------------
   About page
   --------------------------------------------------------- */
.about-intro, .about-renu, .renu-education, .join { padding: var(--section-y) 0 !important; }
.about-intro h1 { font-size: clamp(1.9rem, 1.25rem + 2.3vw, 2.9rem) !important; margin-bottom: 16px; }
.about-intro img, .join img { width: 100%; height: auto !important; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-photo) !important; box-shadow: var(--sh-2); }
.about-intro button, .join button { align-self: flex-start; margin-top: 10px; }
.about-renu { background: var(--mint-50) !important; }
.about-renu img { border-radius: var(--r-photo) !important; box-shadow: var(--sh-2); background: #fff; }
.about-renu h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem) !important; margin-bottom: 16px; }
.about-renu ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.renu-education h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem) !important; margin-bottom: 14px; }
.renu-education .qualification .row, .renu-education .certifications .row { margin: 0; }
.renu-education .qualification .head, .renu-education .certifications .head {
    background: none !important; padding: 0; margin: 28px 0 14px;
}
.renu-education .head h3 { color: var(--ink) !important; text-align: left !important; font-size: 1.35rem; font-weight: 700; }
.renu-education .content {
    border: 0 !important; padding: 0 !important;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px;
}
.renu-education .content li {
    list-style: none; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 14px 16px; color: var(--ink-2); font-size: .95rem; line-height: 1.5;
}
.renu-education .content li img { width: 22px; flex: none; margin-top: 1px; }
.join h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem) !important; }

/* Team page reuses .home-team */
.home-team { padding: var(--section-y) 0 !important; }
.home-team h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem) !important; margin-bottom: 32px; }
.home-team .col-box {
    background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--r-card) !important;
    padding: 12px !important; margin-bottom: 24px; box-shadow: none !important; text-align: left !important;
}
.home-team .col-box img { border-radius: 16px !important; width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: top; }
.home-team .col-box .content-box { padding: 14px 8px 6px; }
.home-team .col-box h6 { margin: 0 0 2px !important; color: var(--teal-700) !important; font-size: .82rem !important; letter-spacing: .08em; text-transform: uppercase; }
.home-team .col-box h4 { font-size: 1.2rem; }

/* Gallery + events */
.gallery-image { padding: clamp(40px, 5vw, 72px) 0 var(--section-y); }
.gallery-image img { border-radius: 18px !important; box-shadow: var(--sh-1); }

/* ETTPED workshop */
.thermal-banner {
    padding: clamp(56px, 7vw, 96px) 0 !important;
    background: radial-gradient(800px 420px at 100% 0%, rgba(38, 171, 163, .55), transparent 60%), var(--teal-900) !important;
}
.thermal-banner h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.thermal-banner h1 span { color: var(--amber) !important; font-family: var(--font-display) !important; }
.thermal-banner h6 { color: rgba(255, 255, 255, .8) !important; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.thermal-banner p, .thermal-banner ul li { color: rgba(255, 255, 255, .88) !important; }
.thermal-banner .form-box { background: #fff !important; border-radius: 24px; padding: 28px !important; box-shadow: var(--sh-3); }
.thermal-banner .form-box input, .thermal-banner .form-box textarea {
    border: 1.5px solid var(--line) !important; border-radius: var(--r-input) !important; padding: 12px 14px !important; color: var(--ink) !important;
}
.thermal-banner .form-box button {
    border-radius: var(--r-pill) !important; background: var(--teal-700) !important; padding: 13px 34px !important; text-transform: none !important;
}

/* Legal pages */
.privacy-policy { padding: var(--section-y) 0; max-width: 860px; margin: 0 auto; }
.privacy-policy h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem) !important; margin-bottom: 18px; }
.privacy-policy h6 { text-decoration: none !important; font-size: 1.1rem; font-weight: 700 !important; margin-top: 28px; }

/* ---------------------------------------------------------
   Footer + CTA band + dock
   --------------------------------------------------------- */
.ms-cta-band { padding: 0 0 clamp(48px, 6vw, 80px); background: transparent; position: relative; z-index: 1; margin-bottom: -96px; }
.ms-cta-band__inner {
    display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); border-radius: 28px; color: #fff;
    background: radial-gradient(600px 300px at 100% 0%, rgba(247, 171, 30, .35), transparent 60%), var(--teal-700);
    box-shadow: var(--sh-3);
}
.ms-cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 0 0 6px; }
.ms-cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.ms-cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.foot.ms-footer {
    background: var(--teal-900) !important; background-image: none !important; color: rgba(255, 255, 255, .78);
    padding: 160px 0 0 !important;
}
.foot.ms-footer.ms-footer--flush { padding-top: 72px !important; }
.ms-footer h4 { color: #fff !important; font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0; }
.ms-footer p { color: rgba(255, 255, 255, .72) !important; font-size: .95rem; margin: 18px 0 22px; }
.ms-footer__logo img { width: 200px; height: auto; }
.ms-footer__links, .ms-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ms-footer__links a, .ms-footer__contact a { color: rgba(255, 255, 255, .78) !important; font-size: .95rem; transition: color .2s ease; }
.ms-footer__links a:hover, .ms-footer__contact a:hover { color: var(--amber) !important; }
.ms-footer .ms-footer__links li a { display: inline; transform: none !important; }
.ms-footer__contact li { display: flex; gap: 10px; font-size: .93rem; line-height: 1.55; }
.ms-footer__contact i { color: var(--amber); font-size: 1.15rem; margin-top: 2px; }
.ms-footer__social { display: flex; gap: 10px; }
.ms-footer__social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem;
    color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background-color .2s, transform .25s var(--ease);
}
.ms-footer__social a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.ms-footer__map { margin-top: 16px; border-radius: 16px; overflow: hidden; }
.ms-footer__map iframe { display: block; filter: saturate(.9); }
.ms-footer__bottom {
    margin-top: 56px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem;
}
.ms-footer__legal { display: flex; gap: 22px; }
.ms-footer__legal a { color: rgba(255, 255, 255, .78); }
.ms-footer__legal a:hover { color: #fff; }

.share-box { display: none; }
.ms-dock { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: grid; gap: 10px; }
.ms-dock__btn {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff !important;
    box-shadow: 0 14px 30px -12px rgba(10, 70, 66, .6); transition: transform .25s var(--ease);
}
.ms-dock__btn:hover { transform: translateY(-3px) scale(1.04); }
.ms-dock__btn--call { background: var(--teal-700); }
.ms-dock__btn--wa { background: #1FAF55; }
.ms-to-top {
    position: fixed; right: 84px; bottom: 24px; z-index: 1040; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.2rem; cursor: pointer;
    background: #fff; color: var(--teal-800); border: 1px solid var(--line); box-shadow: var(--sh-2);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
}
.ms-to-top.ms-show { opacity: 1; visibility: visible; transform: none; }
.ms-to-top:hover { color: var(--teal-700); transform: translateY(-2px); }

/* ---------------------------------------------------------
   Blog cards (home + blog index)
   --------------------------------------------------------- */
.ms-post-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
    overflow: hidden; height: 100%; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ms-post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); color: inherit; }
/* Whole image always visible (no cropping): standard 1200x630 blog-image frame, image contained inside. */
.ms-post-card__img { aspect-ratio: 1200 / 630; background: var(--mint-50); overflow: hidden; }
.ms-post-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s var(--ease); }
.ms-post-card:hover .ms-post-card__img img { transform: scale(1.03); }
.ms-post-card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--teal); font-size: 2.6rem; background: linear-gradient(135deg, var(--mint-100), var(--mint-50)); }
.ms-post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ms-post-card__meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.ms-post-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ms-post-card h2, .ms-post-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0; line-height: 1.3; }
.ms-post-card p { margin: 0; font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ms-post-card .ms-link-arrow { margin-top: auto; padding-top: 6px; font-size: .92rem; }
.ms-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
    background: var(--mint-100); color: var(--teal-800); font-size: .78rem; font-weight: 700; letter-spacing: .02em; width: fit-content;
}

/* ---------------------------------------------------------
   Motion: scroll reveal (JS adds .ms-anim to <html>)
   --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .ms-anim [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
    .ms-anim [data-reveal].is-in { opacity: 1; transform: none; }
    .ms-hero__photo { animation: ms-rise 1s var(--ease) .1s both; }
    .ms-hero__badge { animation: ms-rise .9s var(--ease) .45s both; }
    .ms-hero__chip { animation: ms-rise .9s var(--ease) .6s both; }
}
@keyframes ms-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

a:focus-visible, button:focus-visible, .ms-btn:focus-visible { outline: 3px solid rgba(38, 171, 163, .55); outline-offset: 3px; }

/* Overrides for the legacy animation layer that no longer fit */
body { animation: none !important; }
.hero-banner::before, .hero-banner::after { display: none; }

/* "All therapies" tile closing the services grid */
.ms-service--more {
    background: radial-gradient(420px 260px at 100% 0%, rgba(247, 171, 30, .32), transparent 60%), var(--teal-800);
    border-color: var(--teal-800); color: #fff; justify-content: flex-end; min-height: 260px;
}
.ms-service--more:hover { color: #fff; border-color: var(--teal-800); }
.ms-service--more .ms-service__body { justify-content: flex-end; }
.ms-service--more .ms-service__body > i { font-size: 2.2rem; color: var(--amber); margin-bottom: 14px; }
.ms-service--more h3 { color: #fff; font-size: 1.3rem; }
.ms-service--more p { color: rgba(255, 255, 255, .8); }
.ms-service--more .ms-link-arrow { color: var(--amber); }

/* Hero headline: long SEO headline, keep it to ~3 lines on desktop */
.ms-hero h1.ms-h1 { font-size: clamp(2rem, 1.35rem + 2vw, 2.95rem); line-height: 1.1; }
/* Featured service card: image grows, text stays compact */
.ms-service--feature .ms-service__body { flex: none; }
.ms-service--feature .ms-service__img { position: relative; }
.ms-service--feature .ms-service__img img { position: absolute; inset: 0; }

@media (max-width: 575.98px) {
    .ms-dock { right: 12px; bottom: 12px; }
    .ms-dock__btn { width: 48px; height: 48px; font-size: 1.3rem; }
    .ms-to-top { right: 70px; bottom: 16px; width: 44px; height: 44px; }
}
