/* Service page styling for the pages under Physiotherapy.
   These pages carried header and footer CSS only, so their content rendered as a plain column of text.
   Nothing here changes markup or copy: it styles what is already on the page. Scoped to .mm-service-page
   so no other page is affected. */

.mm-service-page{--mm-navy:#1a3a5c;--mm-blue:#244a71;--mm-coral:#ff563b;--mm-ink:#374151;--mm-mute:#6b7280;--mm-line:#e3e9f0;--mm-wash:#f6f8fb}
.mm-service-page{font-family:'Open Sans',Arial,sans-serif;color:var(--mm-ink);background:#fff}

/* --- section rhythm. Every other full-width band gets the wash, so the page has a pulse instead of one long scroll --- */
.mm-service-page .builder-section.builder-top-section{padding:46px 0}
.mm-service-page .builder-section.builder-top-section:nth-of-type(even){background:var(--mm-wash)}
.mm-service-page .builder-section.builder-top-section:first-of-type{padding-top:54px}
.mm-service-page .builder-container{max-width:1120px;padding-inline:24px;gap:36px;align-items:flex-start}
.mm-service-page .builder-inner-section .builder-container{padding-inline:0;gap:0}

/* --- headings. The coral rule is the site's own device, used on the physiotherapy page --- */
.mm-service-page h1.builder-heading-title{font-size:clamp(30px,4.2vw,44px);line-height:1.15;font-weight:700;color:var(--mm-navy);margin:0 0 20px;letter-spacing:-.01em}
.mm-service-page h1.builder-heading-title::after{content:"";display:block;width:62px;height:4px;background:var(--mm-coral);border-radius:2px;margin-top:18px}
.mm-service-page h2.builder-heading-title{font-size:clamp(23px,2.6vw,31px);line-height:1.25;font-weight:700;color:var(--mm-navy);margin:34px 0 16px}
.mm-service-page h2.builder-heading-title::after{content:"";display:block;width:44px;height:3px;background:var(--mm-coral);border-radius:2px;margin-top:14px}
.mm-service-page h3,.mm-service-page h3.builder-heading-title{font-size:20px;line-height:1.35;font-weight:700;color:var(--mm-blue);margin:28px 0 12px}
.mm-service-page h4,.mm-service-page h4.builder-heading-title{font-size:18px;line-height:1.4;font-weight:700;color:var(--mm-navy);margin:0 0 10px}
.mm-service-page h6,.mm-service-page h6.builder-heading-title{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--mm-mute);font-weight:700;margin:0}

/* --- body copy --- */
.mm-service-page p{font-size:16px;line-height:1.8;margin:0 0 16px;color:var(--mm-ink)}
.mm-service-page a{color:var(--mm-blue);text-decoration:underline;text-underline-offset:2px}
.mm-service-page a:hover{color:var(--mm-coral)}
.mm-service-page strong{color:var(--mm-navy)}

/* --- lists become a checked list, which is what they are --- */
.mm-service-page .builder-widget-text-editor ul{list-style:none;margin:0 0 20px;padding:0}
.mm-service-page .builder-widget-text-editor ul li{position:relative;padding:0 0 0 32px;margin:0 0 11px;line-height:1.65}
.mm-service-page .builder-widget-text-editor ul li::before{content:"";position:absolute;left:0;top:4px;width:18px;height:18px;border-radius:50%;background:var(--mm-blue)}
.mm-service-page .builder-widget-text-editor ul li::after{content:"";position:absolute;left:5.5px;top:9px;width:7px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg)}
.mm-service-page .builder-widget-text-editor ol{padding-left:22px;margin:0 0 20px}
.mm-service-page .builder-widget-text-editor ol li{margin:0 0 11px;line-height:1.65}

/* --- images --- */
.mm-service-page .builder-widget-image img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 6px 22px rgba(26,58,92,.12)}

/* --- the promo panels that sit in the sidebar --- */
.mm-service-page .builder-inner-section{position:relative;border-radius:12px;overflow:hidden;background-size:cover;background-position:center;min-height:210px;display:flex;align-items:center;justify-content:center;text-align:center;padding:26px 20px;margin-bottom:22px;box-shadow:0 6px 22px rgba(26,58,92,.14)}
.mm-service-page .builder-inner-section .builder-background-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(26,58,92,.78),rgba(36,74,113,.68));z-index:0}
.mm-service-page .builder-inner-section .builder-container,.mm-service-page .builder-inner-section .builder-column{position:relative;z-index:1}
.mm-service-page .builder-inner-section h2,.mm-service-page .builder-inner-section h2.builder-heading-title{color:#fff;font-size:23px;margin:0 0 16px;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.mm-service-page .builder-inner-section h2::after{display:none}
.mm-service-page .builder-inner-section a{display:inline-block;color:#fff;border:2px solid rgba(255,255,255,.85);border-radius:8px;padding:9px 20px;font-weight:700;font-size:14px;text-decoration:none}
.mm-service-page .builder-inner-section a:hover{background:var(--mm-coral);border-color:var(--mm-coral);color:#fff}

/* --- the enquiry form, in a card of its own --- */
.mm-service-page .builder-widget-form{background:#fff;border:1px solid var(--mm-line);border-radius:12px;padding:26px;box-shadow:0 2px 14px rgba(26,58,92,.07)}
.mm-service-page .builder-section.builder-top-section:nth-of-type(even) .builder-widget-form{box-shadow:0 6px 22px rgba(26,58,92,.10)}
.mm-service-page .builder-form-fields-wrapper{display:flex;flex-direction:column;gap:14px}
.mm-service-page .builder-field-group{display:flex;flex-direction:column;width:100%}
.mm-service-page .builder-field-label{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--mm-ink);margin-bottom:6px}
.mm-service-page .builder-field-textual,.mm-service-page .builder-form input[type=text],.mm-service-page .builder-form input[type=email],.mm-service-page .builder-form input[type=tel],.mm-service-page .builder-form textarea,.mm-service-page .builder-form select{width:100%;padding:11px 14px;border:1.5px solid #d1d5db;border-radius:6px;font:400 15px/1.4 'Open Sans',Arial,sans-serif;color:#212529;background:#fff;box-sizing:border-box}
.mm-service-page .builder-form textarea{min-height:110px;resize:vertical}
.mm-service-page .builder-form input:focus,.mm-service-page .builder-form textarea:focus,.mm-service-page .builder-form select:focus{outline:none;border-color:var(--mm-blue);box-shadow:0 0 0 3px rgba(36,74,113,.12)}
.mm-service-page .builder-field-type-checkbox label,.mm-service-page .web3forms-consent label{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.55;color:var(--mm-mute);text-transform:none;letter-spacing:0;font-weight:400}
.mm-service-page .builder-field-type-checkbox input[type=checkbox]{margin-top:3px;flex-shrink:0;width:17px;height:17px}
.mm-service-page .cf-turnstile{margin:4px 0}
.mm-service-page .builder-button,.mm-service-page .builder-form button[type=submit]{width:100%;background:var(--mm-coral);color:#fff;border:0;border-radius:8px;padding:14px 20px;font:700 16px/1 'Open Sans',Arial,sans-serif;cursor:pointer;text-align:center}
.mm-service-page .builder-button:hover,.mm-service-page .builder-form button[type=submit]:hover{background:#e84a30}

/* --- the related-services strip: a row of pills, not a stacked list of underlined links.
       The paragraphs sit inside .builder-widget-container, and every link carries an inline
       color:#0000ff from the old page builder, so these have to be specific and !important. --- */
.mm-service-page .mm-related{background:var(--mm-wash)!important;padding:40px 0!important}
.mm-service-page .mm-related .builder-widget-text-editor .builder-widget-container{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mm-service-page .mm-related .builder-widget-text-editor p{margin:0;display:inline-block}
.mm-service-page .mm-related .builder-widget-text-editor p span{display:inline-block;color:inherit!important}
/* site-bundle.css forces `display:inline!important; padding-left:0!important` on every link inside a
   text editor, which collapses the pill into a blob behind the words. Hence the !important here. */
.mm-service-page .mm-related .builder-widget-text-editor p a,
.mm-service-page .mm-related h6 a,
.mm-service-page .mm-related h6.builder-heading-title a{display:inline-block!important;background:#fff;border:1.5px solid var(--mm-line);border-radius:999px;padding:10px 20px!important;text-decoration:none!important;font-weight:600;font-size:14.5px;color:var(--mm-blue)!important;transition:border-color .15s,color .15s;white-space:nowrap;line-height:1.2}
.mm-service-page .mm-related .builder-widget-text-editor p a:hover,
.mm-service-page .mm-related h6 a:hover{border-color:var(--mm-coral);color:var(--mm-coral)!important}
.mm-service-page .mm-related h6,.mm-service-page .mm-related h6.builder-heading-title{text-transform:none;letter-spacing:0;font-size:15px}
.mm-service-page .mm-related h2.builder-heading-title{margin-top:0}

/* --- the old builder wrote color:#0000ff inline on links. That is the 1998 blue, on a clinic site. --- */
.mm-service-page a[style*="0000ff"],.mm-service-page span[style*="0000ff"]{color:var(--mm-blue)!important}
.mm-service-page a[style*="0000ff"]:hover{color:var(--mm-coral)!important}

/* --- an empty column should not reserve half a screen of nothing --- */
.mm-service-page .builder-widget-wrap:empty,
.mm-service-page .builder-column:empty{display:none}

/* One of these links nests two spans that each carry an inline text-decoration, so the pill needs to
   reach inside them too. */
.mm-service-page .mm-related .builder-widget-text-editor p a span{text-decoration:none!important;color:inherit!important}

/* --- hero. The first band gets a wash and more air, so the page opens rather than just starting.
       The width cap is scoped to a full-width column: on a page whose heading shares its row with an
       image, capping it stacks the title into a narrow column five lines tall. --- */
/* (the first-section wash lived here. The hero below replaces it; as a `background` shorthand it
   also erased the hero's own image, which is why it is gone.) */
.mm-service-page .builder-section.builder-top-section:first-of-type .builder-col-100 h1.builder-heading-title{max-width:22ch}
/* A heading that shares its row with an image has half the width, so the full hero size stacks it
   into a tall narrow column. Scale it to the space it actually has. */
.mm-service-page .builder-section.builder-top-section:first-of-type .builder-column:not(.builder-col-100) h1.builder-heading-title{font-size:clamp(26px,2.6vw,34px)}

/* --- Consistency override.
   site-bundle.css carries a bespoke size for EVERY individual heading, written by the old page
   builder as .builder-396 .builder-element.builder-element-c428b91 .builder-heading-title{font-size:1.8rem}.
   Three classes, so it outranks anything sane, and it is why no two of these pages agreed on a
   heading size. These declarations are deliberately !important: the point is to beat a per-element
   style that should never have been generated. --- */
.mm-service-page h1,.mm-service-page h1.builder-heading-title{font-size:clamp(28px,3vw,38px)!important;line-height:1.18!important;font-weight:700!important;color:var(--mm-navy)!important}
.mm-service-page h2,.mm-service-page h2.builder-heading-title{font-size:clamp(23px,2.2vw,29px)!important;line-height:1.28!important;font-weight:700!important;color:var(--mm-navy)!important}
.mm-service-page h3,.mm-service-page h3.builder-heading-title{font-size:20px!important;line-height:1.4!important;font-weight:700!important;color:var(--mm-blue)!important}
.mm-service-page h4,.mm-service-page h4.builder-heading-title{font-size:18px!important;line-height:1.45!important;font-weight:700!important;color:var(--mm-navy)!important}
.mm-service-page h5,.mm-service-page h5.builder-heading-title{font-size:16px!important;line-height:1.5!important;font-weight:700!important;color:var(--mm-navy)!important}
.mm-service-page .builder-widget-text-editor p,.mm-service-page .builder-widget-text-editor li{font-size:16px!important;line-height:1.8!important;font-weight:400!important}
.mm-service-page .mm-related h6,.mm-service-page .mm-related h6.builder-heading-title{font-size:15px!important;font-weight:700!important}
/* the promo panels keep their own white heading */
.mm-service-page .builder-inner-section h2,.mm-service-page .builder-inner-section h2.builder-heading-title{font-size:23px!important;color:#fff!important}

/* --- Hero, matching the one already built on the knee brace page.
   The page's own lead image becomes the background through --mm-hero, set inline on the section,
   and the in-flow copy of it is hidden. The enquiry form is lifted out of the body and into the
   right-hand column, which is what the two good pages on this site do. --- */
.mm-service-page .mm-hero.builder-section.builder-top-section{position:relative;padding:40px 0 52px!important;overflow:hidden;
  background-image:linear-gradient(90deg,rgba(20,49,80,.96) 0%,rgba(30,68,105,.91) 48%,rgba(31,81,122,.78) 100%),var(--mm-hero);
  background-size:cover;background-position:center 40%}
.mm-service-page .mm-hero::after{content:'';position:absolute;right:-8%;bottom:-45%;width:520px;height:520px;border-radius:50%;background:rgba(255,255,255,.05);pointer-events:none}
.mm-service-page .mm-hero > .builder-container{position:relative;z-index:1;align-items:center;gap:52px}
.mm-service-page .mm-hero .builder-widget-image,
.mm-service-page .mm-hero img{display:none!important}
.mm-service-page .mm-hero h1,.mm-service-page .mm-hero h1.builder-heading-title{color:#fff!important;max-width:none!important}
.mm-service-page .mm-hero h1::after{background:#ff8e78}
.mm-service-page .mm-hero .builder-widget-text-editor p,.mm-service-page .mm-hero .builder-widget-text-editor li{color:rgba(255,255,255,.9)!important}
.mm-service-page .mm-hero .builder-widget-text-editor a{color:#ffb09b!important}
.mm-service-page .mm-hero-col{flex:0 0 380px}
.mm-service-page .mm-hero-form{background:#fff;border-radius:12px;padding:28px;box-shadow:0 16px 48px rgba(0,0,0,.28)}
.mm-service-page .mm-hero-form h2,.mm-service-page .mm-hero-form h3,.mm-service-page .mm-hero-form h4,
.mm-service-page .mm-hero-form h2.builder-heading-title,.mm-service-page .mm-hero-form h4.builder-heading-title{font-size:20px!important;line-height:1.3!important;color:var(--mm-navy)!important;margin:0 0 6px!important}
.mm-service-page .mm-hero-form h2::after,.mm-service-page .mm-hero-form h3::after,.mm-service-page .mm-hero-form h4::after{display:none}
.mm-service-page .mm-hero-form .builder-widget-text-editor p{font-size:13.5px!important;line-height:1.55!important;color:#64748b!important;margin:0 0 16px!important}
.mm-service-page .mm-hero-form .builder-widget-form{border:0;box-shadow:none;padding:0;background:transparent}
@media(max-width:980px){
  .mm-service-page .mm-hero > .builder-container{flex-direction:column;gap:30px}
  .mm-service-page .mm-hero-col{flex:1 1 auto;width:100%}
}

/* --- Hero layout, stated outright.
   Two things were wrong. The row was running the full width of the screen instead of the content
   width, so the headline column collapsed to a narrow strip with a gulf beside it. And hiding the
   lead image left its column still holding a third of the row open. --- */
.mm-service-page .mm-hero > .builder-container{max-width:1160px!important;margin-inline:auto!important;padding-inline:30px!important;display:flex!important;flex-wrap:nowrap!important;gap:48px!important;align-items:center!important}
.mm-service-page .mm-hero > .builder-container > .builder-column{width:auto!important;flex:1 1 auto!important;min-width:0}
.mm-service-page .mm-hero > .builder-container > .mm-hero-col{flex:0 0 380px!important}
/* a column holding only the lead image, or nothing at all, must not hold the row open */
.mm-service-page .mm-hero > .builder-container > .builder-column:not(.mm-hero-col):not(:has(h1)):not(:has(p)):not(:has(form)){display:none!important}
@media(max-width:980px){
  .mm-service-page .mm-hero > .builder-container{flex-wrap:wrap!important;gap:28px!important}
  .mm-service-page .mm-hero > .builder-container > .mm-hero-col{flex:1 1 100%!important}
}
