/* Momenthesis 3.4.1 — narrowly scoped client feedback refinements. */

/* Remove the artificial centre seam while keeping the approved video hero. */
.home .hero--compact .hero__col-l{border-right:0}

/* Founder feature sits inside the same content frame as the rest of the page. */
.founder-sec{padding:3rem 0}
.founder-sec__frame{padding-left:2.5rem;padding-right:2.5rem}
.founder-sec__inner{min-height:500px;border:1px solid rgba(115,169,224,.18)}
.founder-sec__photo img{object-position:center 20%}

/* Company identity and controlled expansion for longer testimonials. */
.tc__company-logo{flex:0 0 84px;width:84px;height:44px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:.35rem .5rem;border:1px solid var(--grey);background:#fff}
.tc__company-logo-img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.tc__identity{min-width:0}
.tc,.tc--hl{background:var(--white)}
.tc__q,.tc__q p{color:var(--ink-2)}
.tc__q--collapsible:not(.is-open){display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.tc__more{appearance:none;border:0;background:none;color:#5a9ad4;font:600 .68rem var(--f-mono);letter-spacing:.1em;text-transform:uppercase;padding:0;margin:.7rem 0 1.35rem;cursor:pointer;text-align:left}
.tc__more:hover{color:#2d6a96}

/* OnePageCRM modal. */
.opcrm-overlay{position:fixed;inset:0;z-index:1500;display:flex;align-items:center;justify-content:center;padding:1.25rem;background:rgba(10,16,29,.7);backdrop-filter:blur(8px);opacity:0;pointer-events:none;transition:opacity .22s ease}
.opcrm-overlay.open{opacity:1;pointer-events:auto}
.opcrm-modal{position:relative;width:min(680px,100%);max-height:calc(100vh - 2.5rem);overflow:auto;background:#161c2b;color:#fff;border:1px solid rgba(115,169,224,.25);border-radius:6px;padding:2rem;box-shadow:0 26px 80px rgba(0,0,0,.35);transform:translateY(12px);transition:transform .22s ease}
.opcrm-overlay.open .opcrm-modal{transform:none}
.opcrm-modal__close{position:absolute;right:1rem;top:1rem;border:0;background:transparent;color:#a8caed;font-size:1.15rem;cursor:pointer;padding:.5rem}
.opcrm-modal__title{font:400 2rem var(--f-head);letter-spacing:.04em;text-transform:uppercase;margin:0 2.5rem .35rem 0}
.opcrm-modal__intro{color:rgba(255,255,255,.7);margin:0 2.5rem 1.25rem 0}
.opcrm-webform{min-height:420px}
.opcrm-story-note{margin:.8rem 0 0;color:rgba(255,255,255,.7);font-size:.78rem;line-height:1.55}
.opcrm-story-note p{margin:0}
.opcrm-submitted{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:1rem;padding:2rem}
.opcrm-submitted[hidden]{display:none}
.opcrm-submitted__icon{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(115,169,224,.18);color:#73a9e0}
.opcrm-submitted__icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.opcrm-submitted h3{margin:0;font:400 2rem var(--f-head);letter-spacing:.05em;text-transform:uppercase;color:#fff}
.opcrm-submitted p{margin:0;color:rgba(255,255,255,.7)}
.opcrm-story-actions{border-top:1px solid rgba(255,255,255,.12);padding-top:1rem;margin-top:1rem}
.opcrm-story-actions p{font-size:.78rem;color:rgba(255,255,255,.62);line-height:1.6}
body.modal-open{overflow:hidden}

/* The contact page uses the dedicated CRM form while preserving the call tab. */
.contact-opcrm-form{overflow:hidden;border-radius:3px;background:#161c2b;min-height:620px}
.contact-opcrm-form .opcrm-webform{min-height:620px;background:#161c2b}
.contact-opcrm-form iframe{display:block;width:min(558px,100%);min-height:620px;margin:0 auto;border:0;background:#161c2b}
.opcrm-overlay--contact .opcrm-webform{background:#161c2b}
.opcrm-overlay--contact .opcrm-webform iframe{display:block;width:min(558px,100%);margin:0 auto;background:#161c2b}
#contactModeForm>.inq-tabs,#contactModeForm>.inq-help,#contactModeForm>#contactForm,#contactModeForm>#formSuccess{display:none!important}
.case-download-form{display:grid;gap:1.1rem;margin-top:1.4rem}
.case-download-form[hidden]{display:none}
.case-download-form__row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.case-download-form label{display:grid;gap:.45rem;color:#fff;font:500 .78rem var(--f-body)}
.case-download-form label span{color:#73a9e0}
.case-download-form input[type="text"],.case-download-form input[type="email"]{width:100%;box-sizing:border-box;border:1px solid rgba(115,169,224,.28);border-radius:3px;background:rgba(255,255,255,.08);color:#fff;padding:.9rem 1rem;font:400 .9rem var(--f-body);outline:none}
.case-download-form input:focus{border-color:#73a9e0;box-shadow:0 0 0 2px rgba(115,169,224,.16)}
.case-download-form__consent{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:.65rem!important;line-height:1.55!important;color:rgba(255,255,255,.72)!important}
.case-download-form__consent input{margin-top:.2rem}
.case-download-form .btn{justify-self:start;border:0}

/* FAQ editor output. */
.mm-faq__list{max-width:900px;margin:0 auto;border-top:1px solid var(--grey)}
.mm-faq__item{border-bottom:1px solid var(--grey);background:#fff}
.mm-faq__item summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.35rem 1.5rem;cursor:pointer;font:500 1rem var(--f-body);color:var(--navy)}
.mm-faq__item summary::-webkit-details-marker{display:none}
.mm-faq__item summary span{font-size:1.5rem;color:var(--blue);transition:transform .2s}
.mm-faq__item[open] summary span{transform:rotate(45deg)}
.mm-faq__answer{padding:0 1.5rem 1.4rem;color:var(--ink-2);line-height:1.75}

/* Contact stays immediately accessible on mobile. */
.mobile-contact{display:none}
.mm-carousel-shell{position:relative;min-width:0}
.mm-carousel-arrow{display:none}

/* Client Words becomes a three-up carousel on desktop. */
@media (min-width:901px){
  .mm-carousel-shell--testimonials>.testi__grid,.mm-carousel-shell--team>.team-grid{display:flex!important;grid-template-columns:none!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-inline:contain}
  .mm-carousel-shell--testimonials>.testi__grid::-webkit-scrollbar,.mm-carousel-shell--team>.team-grid::-webkit-scrollbar{display:none}
  .mm-carousel-shell--testimonials>.testi__grid>.tc{flex:0 0 33.333333%!important;width:33.333333%!important;min-width:33.333333%!important;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
  .mm-carousel-shell--team>.team-grid>.tm{flex:0 0 calc(33.333333% - 1px)!important;width:calc(33.333333% - 1px)!important;min-width:calc(33.333333% - 1px)!important;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
  .mm-carousel-shell--testimonials .mm-carousel-arrow,.mm-carousel-shell--team .mm-carousel-arrow{position:absolute;z-index:30;top:50%;transform:translateY(-50%);display:flex!important;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:0;background:transparent;color:#55c7f3;cursor:pointer}
  .mm-carousel-shell--testimonials .mm-carousel-arrow__icon,.mm-carousel-shell--team .mm-carousel-arrow__icon{display:block;width:20px;height:28px;overflow:visible}
  .mm-carousel-shell--testimonials .mm-carousel-arrow__icon path,.mm-carousel-shell--team .mm-carousel-arrow__icon path{fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:square;stroke-linejoin:miter}
  .mm-carousel-shell--testimonials .mm-carousel-arrow--prev,.mm-carousel-shell--team .mm-carousel-arrow--prev{left:-2.05rem}
  .mm-carousel-shell--testimonials .mm-carousel-arrow--next,.mm-carousel-shell--team .mm-carousel-arrow--next{right:-2.05rem}
  .mm-carousel-shell--testimonials .mm-carousel-arrow--prev .mm-carousel-arrow__icon,.mm-carousel-shell--team .mm-carousel-arrow--prev .mm-carousel-arrow__icon{transform:scaleX(-1)}
  .mm-carousel-shell--testimonials .mm-carousel-arrow:disabled,.mm-carousel-shell--team .mm-carousel-arrow:disabled{opacity:.28;pointer-events:none}
}
.mm-carousel-shell--static .mm-carousel-arrow{display:none!important}

/* Editable charitable organisations. */
.charity-list{display:grid;gap:1.5rem}
.charity-list .charity-body + .charity-body{padding-top:1.5rem;border-top:1px solid var(--grey)}
.charity-copy p{margin:0;color:inherit;font:inherit;line-height:inherit}
.cs-feat__img-tag{margin:0}
.cs-feat__custom-media{position:absolute;inset:0;z-index:1;overflow:hidden}
.cs-feat__custom-media img{display:block;width:100%;height:100%;object-fit:cover}

/* Course cards are query-loop wrappers, so the separators belong on the LI. */
ul.wp-block-post-template.ecourse__row>li{display:block!important;min-width:0}
ul.wp-block-post-template.ecourse__row>li+li{border-left:1px solid rgba(255,255,255,.22)}

/* Keep hero subtitles on one consistent tint; nested spans must not introduce gradients. */
.hero__sub,.hero__sub *{color:rgba(255,255,255,.64)!important;-webkit-text-fill-color:rgba(255,255,255,.64)!important;background:none!important}

html{scroll-padding-top:calc(var(--hh,68px) + 4px)}
[id]{scroll-margin-top:calc(var(--hh,68px) + 4px)}

@media (min-width:701px) and (max-width:1100px){
  .team-card__img{min-height:390px!important}
  .team-card__img img{object-position:50% 28%!important}
  .team-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .team-grid .tm__photo{height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  .team-grid .tm__photo img{object-position:50% 18%!important}
  .case-card__img{height:88px!important}
  .founder-sec__inner{min-height:430px}
  .founder-sec__content{padding:3.25rem!important}
}

@media (max-width:700px){
  .mobile-contact{display:inline-flex;margin-left:auto;margin-right:.1rem;padding:.42rem .8rem;background:var(--blue);color:#fff!important;border-radius:4px;font-size:.75rem;text-decoration:none}
  .nav-toggle{margin-left:.15rem!important}
  .nav .nav-cta{display:none!important}
  /* Every mobile carousel exposes exactly one complete item per viewport. */
  .testi__grid>.tc,.team-grid>.tm,.phases__track>.phase,.pillars__grid>.pillar,
  .cases-grid>.case-card,.cs-bottom>*,.fw__grid>.fw__phase,
  ul.wp-block-post-template.testi__grid>li,ul.wp-block-post-template.cases-grid>li{
    flex:0 0 100%!important;width:100%!important;min-width:100%!important;max-width:none!important
  }
  /* The Services hero assessment CTA is desktop-only. Keep the rule scoped to
     its dedicated class so other blue buttons remain available on mobile. */
  .assessment-cta{display:none!important}
  .founder-sec{padding:1.5rem 0}
  .founder-sec__frame{padding-left:1.15rem;padding-right:1.15rem}
  .founder-sec__inner{min-height:0}
  .founder-sec__photo{min-height:300px!important;max-height:390px}
  .founder-sec__photo img{object-position:center 18%}
  .mm-carousel-arrow{position:absolute;z-index:30;top:50%;transform:translateY(-50%);width:46px;height:46px;padding:0;border:0;border-radius:0;background:transparent;color:#55c7f3;display:flex!important;align-items:center;justify-content:center;cursor:pointer;box-shadow:none}
  .mm-carousel-arrow__icon{display:block;width:20px;height:28px;overflow:visible}
  .mm-carousel-arrow__icon path{fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:square;stroke-linejoin:miter}
  .mm-carousel-arrow--prev .mm-carousel-arrow__icon{transform:scaleX(-1)}
  .mm-carousel-arrow--prev{left:-1.55rem}.mm-carousel-arrow--next{right:-1.55rem}
  .mm-carousel-arrow:disabled{opacity:.28;pointer-events:none}
  .sec--off .mm-carousel-arrow,.mm-carousel-shell .mm-carousel-arrow{color:#55c7f3}
  /* Resources success stories use the same shared controls as homepage
     carousels. Moving the grid margin to the shell keeps those arrows centred. */
  #cases .mm-carousel-shell{margin-top:1.5rem}
  #cases .mm-carousel-shell>.cases-grid{margin-top:0}
  /* Resource shortcuts and News listings read as vertical lists on phones. */
  .hero .diag-grid,.news-feed .news-grid,.news-sec .all-view{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important;width:100%!important;scroll-snap-type:none!important}
  .hero .diag-grid>*,.news-feed .news-grid>*,.news-sec .all-view>*{width:auto!important;flex:none!important}
  .hero .diag-cell{border-right:0!important;border-bottom:1px solid rgba(115,169,224,.18)!important}
  .hero .diag-cell:nth-child(1){border-bottom:0!important}
  ul.wp-block-post-template.ecourse__row>li+li{border-left:0;border-top:1px solid rgba(255,255,255,.22)}
  .opcrm-modal{padding:1.35rem}
  .opcrm-webform{min-height:520px}
  .case-download-form__row{grid-template-columns:1fr}
}
