/* XMS Theme v1.4.06 – changes from annotated site screenshots.
 * Screens: Home, About, Our Solutions, Our Work, Contact Us.
 * Visual styles only; every section, link, editable image and form remains intact.
 */

/* Same card-gutters on all inner pages; header stays outside the cards. */
body.xms-theme.xms-inner-study .xms-main {
  width:min(100%,var(--xms-page-width,1340px)) !important;
  padding:14px 15px 12px !important;
  gap:16px !important;
  margin-inline:auto !important;
}
body.xms-theme.xms-inner-study .xms-main > .xms-section {
  max-width:100%;
  min-width:0;
}

/* ── 1: Home – full edge-to-edge MOVING video, not a narrow centre
   column surrounded by blurred gutters. Crop only surplus height rather
   than stretch the moving 16:9 content horizontally. */
body.xms-theme.xms-home-study.xms-has-home-video .xms-main > .xms-top-video {
  display:block !important;
  position:relative !important;
  left:0 !important;
  transform:none !important;
  grid-column:1 / -1 !important;
  width:100vw !important;
  max-width:100vw !important;
  min-width:100vw !important;
  margin-left:calc(50% - 50vw) !important;
  margin-right:0 !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  height:clamp(330px,34vw,550px) !important;
  border-radius:0 !important;
  overflow:hidden !important;
  background:#bfc0c6 !important;
}
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-frame {
  inset:0 !important;
  overflow:hidden !important;
  background:#bfc0c6 !important;
}
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-frame::before,
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-edge-canvas {
  display:none !important;
  content:none !important;
  opacity:0 !important;
}
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-frame video.xms-top-video-native {
  display:block !important;
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  max-height:none !important;
  margin:0 !important;
  transform:none !important;
  object-fit:cover !important;
  object-position:center 40% !important;
  border:0 !important;
}
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-frame iframe.xms-top-video-embed {
  position:absolute !important;
  display:block !important;
  left:50% !important;
  top:50% !important;
  right:auto !important;
  bottom:auto !important;
  width:100vw !important;
  max-width:none !important;
  height:56.25vw !important;
  min-height:100% !important;
  max-height:none !important;
  margin:0 !important;
  transform:translate(-50%,-50%) !important;
  border:0 !important;
}
body.xms-theme.xms-home-study.xms-has-home-video .xms-top-video-fallback {
  background-size:cover !important;
  background-position:center 40% !important;
}
/* Crisp white canvas, not blue / grey, behind the globe image and hero CTA. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_hero {
  background:#fff !important;
  background-color:#fff !important;
}
/* Four highlights: larger editable image/SVG icons, no backgrounds. */
body.xms-theme.xms-home-study .xms-main > .xms-section-study_stats {
  min-height:172px !important;
  padding:14px clamp(12px,2vw,26px) !important;
}
body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat {
  min-height:135px !important;
  padding:5px !important;
}
body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon {
  width:136px !important;
  height:136px !important;
  max-width:100% !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon img,
body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon .xms-icon-upload {
  width:132px !important;
  height:132px !important;
  max-width:100% !important;
  object-fit:contain !important;
}
body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon svg {
  width:117px !important;
  height:117px !important;
  max-width:100% !important;
}
/* Approach and Values: vertically centre content in landscape 3-column row. */
@media(min-width:901px){
  body.xms-theme.xms-home-study .xms-main > .xms-section-study_approach,
  body.xms-theme.xms-home-study .xms-main > .xms-section-study_values {
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_approach .xms-study-approach-list,
  body.xms-theme.xms-home-study .xms-section-study_values .xms-study-values-list {
    flex:1 1 auto !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    width:100% !important;
  }
}
/* In screenshots the CTA and inner-page hero buttons should have plain WHITE
   faces (not a blue or grey gradient) while keeping the site's silver edge. */
body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-button,
body.xms-theme.xms-inner-study .xms-inner-hero-actions .xms-study-button {
  background:#fff !important;
  background-image:none !important;
  color:#464b51 !important;
  border:1px solid #a0a5ab !important;
  box-shadow:0 2px 0 #9a9fa3,0 5px 11px rgba(40,48,60,.10) !important;
  text-shadow:none !important;
}
body.xms-theme.xms-home-study .xms-section-study_hero .xms-study-button:hover,
body.xms-theme.xms-inner-study .xms-inner-hero-actions .xms-study-button:hover {
  background:#f7f7f7 !important;
  color:#26313d !important;
}

/* ── 2–4: About, Solutions, Work – top whitespace is an obsolete
   165px floating-header offset. Header now has its own normal flow row. */
body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero {
  box-sizing:border-box;
  padding:clamp(35px,4.5vw,60px) clamp(24px,5.5vw,70px) !important;
  min-height:0 !important;
  background-color:#fff;
}
body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero .xms-inner-hero-grid {
  min-height:0 !important;
  align-items:center;
  width:100%;
}
body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero .xms-inner-hero-photo {
  min-height:0;
  height:auto;
  aspect-ratio:1.4;
  align-self:center;
  border-radius:18px;
  overflow:hidden;
}
body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero .xms-inner-hero-photo img {
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  border-radius:18px;
}
body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero .xms-inner-hero-copy h1 {
  font-weight:700;
  max-width:100%;
  overflow-wrap:normal;
}
/* Tight but breathable sections: no tall empty band around title/description. */
body.xms-theme.xms-inner-study .xms-main > section:is(#solutions-integrated-intro,#work-projects,#about-mission) {
  padding-block:clamp(35px,4.4vw,56px) !important;
}
body.xms-theme.xms-inner-study #solutions-integrated-intro .xms-section-heading,
body.xms-theme.xms-inner-study #work-projects .xms-section-heading {
  margin-bottom:clamp(20px,2.4vw,30px) !important;
}
body.xms-theme.xms-inner-study #solutions-integrated-intro .xms-section-heading h2,
body.xms-theme.xms-inner-study #work-projects .xms-section-heading h2 {
  margin-top:0 !important;
  margin-bottom:10px !important;
}
body.xms-theme.xms-inner-study #solutions-integrated-intro .xms-section-heading .xms-richtext p,
body.xms-theme.xms-inner-study #work-projects .xms-section-heading .xms-richtext p {
  margin-bottom:0 !important;
}
/* Extra space at the end of Work cards is not needed. Keep all cards intact. */
body.xms-theme.xms-inner-study #work-projects .xms-items {
  margin-bottom:0 !important;
}
body.xms-theme.xms-inner-study .xms-main > section#work-projects.xms-section {
  padding-bottom:clamp(34px,4.2vw,54px) !important;
}
body.xms-theme.xms-inner-study .xms-main > section#work-cta.xms-section {
  margin-top:0 !important;
}

/* ── 5: Contact – applies to /contact/ AND /contact-us/ (see slug alias
   in PHP), including the user's existing saved hero sections. */
body.xms-theme.xms-contact-page.xms-inner-study .xms-main {
  padding-top:14px !important;
  padding-bottom:6px !important;
  gap:14px !important;
}
body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section:is(#contact-hero,#contact-details,#contact-form) {
  width:100% !important;
  max-width:100% !important;
  background:#fff !important;
  background-image:none !important;
  border-radius:22px !important;
  box-sizing:border-box;
  overflow:hidden;
}
body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section#contact-hero.xms-section {
  padding:clamp(35px,4.5vw,58px) clamp(24px,5vw,68px) !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-grid {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  align-items:center !important;
  gap:clamp(24px,4vw,58px);
  width:100% !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-copy,
body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-photo {
  min-width:0 !important;
  max-width:100% !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-hero h1 {
  font-size:clamp(31px,3.2vw,51px) !important;
  line-height:1.15 !important;
  overflow-wrap:break-word !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-photo {
  height:clamp(300px,31vw,410px) !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-photo img {
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section#contact-details.xms-section {
  display:grid !important;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr) !important;
  gap:clamp(22px,3.8vw,52px);
  padding:clamp(30px,4.5vw,55px) clamp(24px,5vw,68px) !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-details .xms-study-contact-details {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:12px !important;
  margin:0 !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-details .xms-study-contact-detail {
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) !important;
  align-items:start;
  gap:14px;
  padding:15px 17px;
  min-width:0;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-details .xms-study-contact-detail svg {
  width:27px !important;
  height:27px !important;
  flex:none;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-details .xms-study-contact-detail-body {
  min-width:0;
  overflow-wrap:anywhere;
}
body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section#contact-form.xms-section {
  background:#fff !important;
  padding:clamp(34px,4.2vw,56px) clamp(18px,4.8vw,58px) clamp(28px,3.6vw,42px) !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-form :is(.xms-contact-form,.wpforms-container,.wpforms-form) {
  background-color:#fff !important;
  background-image:none !important;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-form .xms-contact-form {
  max-width:850px;
}
body.xms-theme.xms-contact-page.xms-inner-study #contact-form .xms-section-heading {
  text-align:center !important;
  margin-inline:auto !important;
  margin-bottom:24px !important;
}

/* Footer on all five pages: wider use of columns, reduce unneeded horizontal
   gap and empty vertical space; maintain centered copyright and larger logo. */
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-wrap {
  padding-top:clamp(26px,3.5vw,44px) !important;
  width:min(calc(100% - 60px),var(--xms-page-width,1340px)) !important;
  max-width:1340px !important;
}
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-main {
  grid-template-columns:minmax(0,1.22fr) minmax(0,1fr) minmax(0,1fr) !important;
  gap:clamp(24px,3vw,48px) !important;
  padding-bottom:clamp(22px,2.5vw,34px) !important;
}
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-brand-logo {
  margin:0 !important;
  width:max-content !important;
  max-width:100% !important;
}
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-brand-logo img {
  max-height:165px !important;
  max-width:min(100%,310px) !important;
  object-fit:contain !important;
}
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-bottom-bar {
  padding:13px 0 17px !important;
  gap:7px !important;
}
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-copyright {
  text-align:center !important;
  width:100%;
}

/* Tablet / portrait: all paired columns stack cleanly. */
@media(max-width:900px) {
  body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero .xms-inner-hero-grid,
  body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-grid {
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero .xms-inner-hero-photo {
    aspect-ratio:1.7 !important;
    width:100% !important;
  }
  body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-photo {
    height:320px !important;
  }
  body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section#contact-details.xms-section {
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-main {
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) !important;
    row-gap:27px !important;
  }
  body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-brand-panel {
    grid-column:1/-1;
  }
}
@media(max-width:700px) {
  body.xms-theme.xms-home-study.xms-has-home-video .xms-main > .xms-top-video {
    height:clamp(215px,56.25vw,395px) !important;
  }
  body.xms-theme.xms-home-study .xms-main > .xms-section-study_stats {
    min-height:112px !important;
    padding:10px 7px !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat {
    min-height:92px !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon {
    height:80px !important;
    width:80px !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon img,
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon .xms-icon-upload {
    height:78px !important;
    width:78px !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon svg {
    height:70px !important;
    width:70px !important;
  }
  body.xms-theme.xms-inner-study .xms-main {
    padding:10px 10px 10px !important;
    gap:12px !important;
  }
  body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero {
    padding:30px 21px !important;
  }
  body.xms-theme.xms-inner-study .xms-main > .xms-section-xms_inner_hero .xms-inner-hero-copy h1 {
    font-size:clamp(30px,7.5vw,43px);
  }
  body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section:is(#contact-hero,#contact-details,#contact-form) {
    border-radius:16px !important;
  }
  body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section#contact-hero.xms-section,
  body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section#contact-details.xms-section {
    padding:29px 20px !important;
  }
  body.xms-theme.xms-contact-page.xms-inner-study #contact-hero .xms-inner-hero-photo {
    height:265px !important;
  }
  body.xms-theme.xms-contact-page.xms-inner-study .xms-main > section#contact-form.xms-section {
    padding:29px 18px 25px !important;
  }
  body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-wrap {
    width:calc(100% - 36px) !important;
    padding-top:28px !important;
  }
  body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-main {
    grid-template-columns:minmax(0,1fr) !important;
    gap:25px !important;
    padding-bottom:24px !important;
  }
  body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-brand-panel {
    grid-column:auto;
  }
}
/* Preserve adaptive footer behavior when menus are intentionally disabled. */
body.xms-theme .xms-footer.xms-footer-no-menus .xms-footer-main {
  grid-template-columns:minmax(0,1fr) !important;
}
body.xms-theme .xms-footer.xms-footer-single-menu .xms-footer-main {
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) !important;
}
@media(max-width:700px){
 body.xms-theme .xms-footer.xms-footer-single-menu .xms-footer-main {
   grid-template-columns:minmax(0,1fr) !important;
 }
}
@media(max-width:440px) {
  body.xms-theme.xms-home-study.xms-has-home-video .xms-main > .xms-top-video {
    height:56.25vw !important;
    min-height:190px !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon,
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat {
    min-width:0 !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon {
    width:60px !important;
    height:60px !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon img,
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon .xms-icon-upload {
    width:58px !important;
    height:58px !important;
  }
  body.xms-theme.xms-home-study .xms-section-study_stats .xms-study-stat-icon svg {
    width:54px !important;
    height:54px !important;
  }
}
