/* MERAKI editorial refinements — keep the existing content and page builders intact. */
:root { --fm-editorial-serif: "Iowan Old Style", "Baskerville", "Times New Roman", Georgia, serif; }

/* Give the existing non-video introductions the same editorial voice. */
html body:is(.page-id-902,.page-id-1860,.page-id-2303,.page-id-2304,.page-id-613,.page-id-1861) .fm-service-hero:not(.fm-video-hero) h1{
  font-family:var(--fm-editorial-serif)!important;
  font-weight:400!important;
  font-size:clamp(43px,5vw,72px)!important;
  line-height:1.06!important;
  letter-spacing:-.04em!important;
  text-wrap:balance;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-service-hero:not(.fm-video-hero) h1{
  font-family:var(--fm-editorial-serif)!important;
  font-weight:400!important;
  font-size:clamp(43px,5vw,72px)!important;
  line-height:1.06!important;
  letter-spacing:-.04em!important;
  text-wrap:balance!important;
}

/* Editorial typography on presentation pages, never on checkout/product controls. */
html body:is(.page-id-609,.page-id-1439,.page-id-902,.page-id-1860,.page-id-2303,.page-id-2304,.page-id-613,.page-id-1861) .elementor :is(h2,.elementor-heading-title.elementor-size-xl),
html body:is(.page-id-1453,.page-id-1454) #fmhotel .section h2 {
  font-family:var(--fm-editorial-serif)!important;
  font-size:clamp(35px,4.25vw,69px)!important;
  font-weight:400!important;
  line-height:1.11!important;
  letter-spacing:-.035em!important;
  text-wrap:balance;
}
html body:is(.page-id-609,.page-id-1439) .elementor :is(.elementor-widget-text-editor p,.elementor-widget-text-editor li){
  line-height:1.8!important;
}
html body:is(.page-id-1453,.page-id-1454) #fmhotel .section {
  padding-top:clamp(88px,9vw,150px)!important;
  padding-bottom:clamp(88px,9vw,150px)!important;
}
html body:is(.page-id-609,.page-id-1439) .elementor-widget-heading:not(:first-child){
  margin-top:clamp(12px,2vw,32px);
}

/* Visually quieter language switch: no animation, compact active underline. */
html body :is(.fm-journey-languages,.hotel-language){
  font:500 12px/1.4 Montserrat,Arial,sans-serif!important;
  letter-spacing:.13em!important;
  gap:10px!important;
  opacity:.88;
}
html body :is(.fm-journey-languages,.hotel-language) a {
  padding:2px 1px!important;
  font-weight:500!important;
  text-decoration:none!important;
  border:0!important;
}
html body :is(.fm-journey-languages,.hotel-language) a[aria-current="page"] {
  border-bottom:1px solid currentColor!important;
}

/* 16:9 full-width cinematic treatment: the ENTIRE source frame is visible. */
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-service-hero.fm-video-hero {
  display:block!important;
  width:100vw!important;
  max-width:100vw!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:16/9!important;
  margin:0 0 0 calc(50% - 50vw)!important;
  padding:0!important;
  gap:0!important;
  overflow:hidden!important;
  position:relative!important;
  isolation:isolate!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-service-hero.fm-video-dark{background:#23130e!important;color:#fff!important}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-service-hero.fm-video-light{background:#e9d8c6!important;color:#34241d!important}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero::before{
  content:""!important;display:block!important;
  position:absolute!important;inset:0!important;z-index:1!important;
  pointer-events:none!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-dark::before{
  background:linear-gradient(90deg,rgba(26,13,10,.65),rgba(26,13,10,.23) 47%,transparent 68%)!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light::before{
  background:linear-gradient(270deg,rgba(250,239,227,.85),rgba(250,239,227,.47) 45%,transparent 68%)!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero::after{content:none!important}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero .fm-service-image{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  z-index:0!important;
}
html body .fm-video-hero .fm-service-image .fm-hero-film{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
  margin:0!important;padding:0!important;filter:none!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero .fm-service-copy{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  position:absolute!important;left:4.8vw!important;right:auto!important;top:0!important;bottom:0!important;
  z-index:2!important;width:clamp(360px,43vw,660px)!important;max-width:47%!important;
  padding:clamp(20px,3vw,60px)!important;
  margin:0!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light .fm-service-copy{
  left:auto!important;right:3.5vw!important;
  width:clamp(390px,45vw,690px)!important;max-width:48%!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero h1{
  font-family:var(--fm-editorial-serif)!important;
  font-size:clamp(42px,5.2vw,91px)!important;
  font-weight:400!important;
  line-height:1.02!important;
  letter-spacing:-.048em!important;
  text-transform:none!important;
  text-align:left!important;
  text-wrap:balance!important;
  max-width:14ch!important;
  margin:0 0 clamp(14px,2vw,30px)!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-dark h1,
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-dark p{color:#fff7f1!important}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light h1,
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light p{color:#34241d!important}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero p.fm-video-tagline{
  font:400 clamp(16px,1.55vw,23px)/1.45 var(--fm-editorial-serif)!important;
  max-width:35ch!important;margin:0!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero .fm-service-actions{
  margin-top:clamp(18px,2.4vw,36px)!important;
  gap:14px 20px!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero a.fm-action-primary,
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero p.fm-service-related>a{
  background:#a78045!important;border-color:#a78045!important;color:white!important;
  -webkit-text-fill-color:white!important;
  box-shadow:none!important;transition:background-color .25s ease,transform .25s ease!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero a.fm-action-primary:hover,
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero p.fm-service-related>a:hover{
  background:#916c38!important;transform:translateY(-1px)!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-dark a.fm-action-text{
  color:#fff!important;text-decoration:none!important;border-bottom:1px solid rgba(255,255,255,.75)!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light a.fm-action-text{
  color:#4b3527!important;text-decoration:underline!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero .fm-service-related{
  font-size:clamp(12px,1vw,15px)!important;line-height:1.48!important;
  margin:14px 0 0!important;
}
html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light .fm-service-image figcaption{
  position:absolute!important;bottom:14px!important;left:24px!important;
  z-index:2!important;margin:0!important;padding:0!important;
  background:rgba(249,239,229,.72)!important;
  color:#4d3b33!important;font-size:11px!important;
}

/* The longer original text remains visible BELOW the moving hero. */
html body .fm-video-longcopy{
  width:100%!important;max-width:none!important;
  margin:0!important;padding:clamp(42px,5vw,80px) 24px!important;
  background:#f6f2ea!important;color:#43352e!important;
}
html body .fm-video-longcopy-inner{
  max-width:880px!important;margin:0 auto!important;
}
html body .fm-video-eyebrow{
  display:block!important;margin:0 0 18px!important;
  color:#896f52!important;font:600 12px/1.4 Montserrat,Arial,sans-serif!important;
  letter-spacing:.18em!important;text-transform:uppercase!important;
}
html body .fm-video-longcopy p{
  margin:0!important;font:400 clamp(17px,1.7vw,23px)/1.75 var(--fm-editorial-serif)!important;
  max-width:64ch!important;color:#43352e!important;
}

/* Small motion accents. Respect reduced-motion preferences. */
@media (prefers-reduced-motion:no-preference){
  html body .fm-video-hero .fm-service-copy h1{
    animation:fm-hero-soft-arrival .75s ease-out both;
  }
  html body .fm-video-hero .fm-service-actions{
    animation:fm-hero-soft-arrival .95s ease-out both;
  }
}
@keyframes fm-hero-soft-arrival{from{opacity:.86;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}

@media (max-width:1023px){
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-service-hero.fm-video-hero{
    display:flex!important;flex-direction:column!important;
    aspect-ratio:auto!important;height:auto!important;min-height:0!important;
    width:100vw!important;max-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;overflow:visible!important;
  }
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero::before{
    content:none!important;
  }
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero .fm-service-image{
    position:relative!important;inset:auto!important;order:0!important;
    width:100%!important;height:auto!important;aspect-ratio:16/9!important;
    max-width:none!important;overflow:hidden!important;
  }
  html body .fm-video-hero .fm-service-image .fm-hero-film{
    display:block!important;width:100%!important;height:100%!important;aspect-ratio:16/9!important;
    object-fit:contain!important;
  }
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero .fm-service-copy{
    display:block!important;position:relative!important;top:auto!important;bottom:auto!important;
    left:auto!important;right:auto!important;order:1!important;
    width:100%!important;max-width:none!important;
    padding:clamp(22px,3.5vw,42px) clamp(20px,5vw,52px) clamp(26px,4vw,54px)!important;
  }
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-dark .fm-service-copy{background:#241611!important}
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light .fm-service-copy{background:#f5e9dc!important}
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero h1{
    font-size:clamp(34px,7vw,56px)!important;max-width:24ch!important;
    margin-bottom:12px!important;
  }
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero .fm-service-actions{margin-top:20px!important}
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-light .fm-service-image figcaption{
    position:absolute!important;bottom:4px!important;left:8px!important;
    font-size:9px!important;
  }
}
@media (max-width:560px){
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero h1{
    font-size:clamp(31px,8vw,40px)!important;
    line-height:1.05!important;
  }
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero p.fm-video-tagline{
    font-size:17px!important;line-height:1.4!important;
  }
  html body :is(#fmhotel,#mkwp,#content,.fmseo-page,.elementor) .fm-video-hero a.fm-action-primary{
    min-height:46px!important;padding:11px 15px!important;font-size:13px!important;
  }
  html body .fm-video-longcopy{padding:44px 22px!important}
  html body .fm-video-longcopy p{font-size:17px!important}
}
@media(prefers-reduced-motion:reduce){
  html body .fm-video-hero .fm-service-copy *{animation:none!important;transition:none!important}
  html body .fm-video-hero .fm-service-image video{display:block!important}
  html body .fm-video-dark .fm-service-image{background:#291711 url('/wp-content/uploads/meraki-hero-dark-poster.webp') center/contain no-repeat!important}
  html body .fm-video-light .fm-service-image{background:#e9d8c6 url('/wp-content/uploads/meraki-hero-light-poster.webp') center/contain no-repeat!important}
}

/* Mobile film hero: override legacy two-column thumbnails and button sizes. */
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-hero .fm-service-image figcaption{display:none!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero .fm-service-actions>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:230px!important;height:50px!important;min-height:50px!important;max-height:50px!important;padding:12px 16px!important;margin:0!important;font:600 15px/1.2 Montserrat,Arial,sans-serif!important;white-space:nowrap!important;text-align:center!important;text-decoration:none!important;}
@media(max-width:767px){
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero:not(.fm-video-hero){display:flex!important;flex-direction:column!important;gap:24px!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero:not(.fm-video-hero) .fm-service-copy{display:block!important;width:100%!important;max-width:none!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero.fm-video-hero{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;position:relative!important;width:100vw!important;max-width:100vw!important;min-height:560px!important;height:auto!important;aspect-ratio:auto!important;margin:0 0 0 calc(50% - 50vw)!important;padding:0!important;overflow:hidden!important;isolation:isolate!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-hero .fm-service-image{display:block!important;position:absolute!important;inset:0!important;grid-area:auto!important;width:100%!important;max-width:none!important;height:100%!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;z-index:0!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-hero .fm-service-image .fm-hero-film{display:block!important;position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:70% center!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-light .fm-service-image .fm-hero-film{object-position:28% center!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-hero::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(180deg,rgba(24,14,10,.05) 0%,rgba(24,14,10,.12) 22%,rgba(24,14,10,.78) 60%,rgba(24,14,10,.94) 100%)!important;pointer-events:none!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-hero .fm-service-copy{display:block!important;position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:220px 24px 28px!important;background:transparent!important;z-index:2!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-hero h1{font-size:clamp(30px,8vw,38px)!important;line-height:1.08!important;letter-spacing:-.025em!important;max-width:none!important;margin:0 0 12px!important;color:#fff7f1!important;-webkit-text-fill-color:#fff7f1!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-video-hero p.fm-video-tagline{font-size:17px!important;line-height:1.4!important;max-width:32ch!important;margin:0!important;color:#fff7f1!important;-webkit-text-fill-color:#fff7f1!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero .fm-service-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important;margin:20px 0 0!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero .fm-service-actions>a{width:100%!important;height:48px!important;min-height:48px!important;max-height:48px!important;font-size:14px!important;flex:0 0 48px!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero .fm-service-actions>a *{font-size:inherit!important;line-height:inherit!important;}
}

@media(max-width:767px){html:root body:not(#fm-style-priority):not(#fm-style-priority2) :is(#content,#fmhotel,#mkwp,.fmseo-page,.elementor) .fm-service-hero.fm-video-hero{width:100%!important;max-width:100%!important;margin:0!important;}}

/* Natural scrolling and reachable mobile homepage actions. */
html:root:has(body:is(.page-id-609,.page-id-1439)),
html:root body:is(.page-id-609,.page-id-1439){scroll-snap-type:none!important;scroll-behavior:auto!important;}
html:root body:is(.page-id-609,.page-id-1439) *{scroll-snap-align:none!important;scroll-snap-stop:normal!important;}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) .fm-video-longcopy .fm-service-related{
 display:block!important;position:static!important;margin:24px 0 0!important;line-height:1.65!important;clear:both!important;
}
html:root body:not(#fm-style-priority):not(#fm-style-priority2) .fm-video-longcopy .fm-service-related>a{
 display:flex!important;position:static!important;float:none!important;transform:none!important;
 align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
 width:230px!important;max-width:100%!important;min-height:48px!important;height:48px!important;
 margin:18px 0 0!important;padding:12px 16px!important;font:600 15px/1.2 Montserrat,Arial,sans-serif!important;
 text-decoration:none!important;white-space:nowrap!important;
}
@media(max-width:767px){
 html:root body:not(#fm-style-priority):not(#fm-style-priority2):is(.page-id-609,.page-id-1439) :is(#content,.elementor,.fmseo-page) .fm-service-hero.fm-video-hero.fm-service-home{
  height:clamp(380px,calc(100svh - 145px),520px)!important;min-height:0!important;max-height:none!important;
 }
 html:root body:not(#fm-style-priority):not(#fm-style-priority2):is(.page-id-609,.page-id-1439) :is(#content,.elementor,.fmseo-page) .fm-service-home.fm-video-hero .fm-service-copy{
  position:absolute!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;
  padding:20px 22px 128px!important;
 }
 html:root body:not(#fm-style-priority):not(#fm-style-priority2):is(.page-id-609,.page-id-1439) :is(#content,.elementor,.fmseo-page) .fm-service-home.fm-video-hero h1{
  font-size:clamp(27px,7.6vw,33px)!important;line-height:1.08!important;margin-bottom:10px!important;
 }
 html:root body:not(#fm-style-priority):not(#fm-style-priority2):is(.page-id-609,.page-id-1439) :is(#content,.elementor,.fmseo-page) .fm-service-home.fm-video-hero .fm-video-tagline{
  font-size:16px!important;line-height:1.35!important;
 }
 html:root body:not(#fm-style-priority):not(#fm-style-priority2):is(.page-id-609,.page-id-1439) :is(#content,.elementor,.fmseo-page) .fm-service-home.fm-video-hero .fm-service-actions{
  margin-top:16px!important;gap:8px!important;
 }
 html:root body:not(#fm-style-priority):not(#fm-style-priority2) .fm-video-longcopy .fm-service-related>a{width:100%!important;}
}
