/* Invest-only copy of the established deck enhancement. Content and styling remain native. */
/* Match Home / Why Jamaica image easing. Native Elementor owns entrances and lifts;
   descendant hover effects require these small, Invest-scoped exceptions. */
.jp-invest-page .jp-invest-photo{overflow:hidden}
.jp-invest-page .jp-invest-photo img{transition:transform .7s cubic-bezier(.22,1,.36,1)}
.jp-invest-page .jp-invest-stat-hover .jp-invest-art-icon img{transition:transform .4s cubic-bezier(.22,1,.36,1),filter .3s ease}
.jp-invest-page .jp-invest-agreements summary{transition:background-color .3s ease,color .3s ease}
@media(hover:hover) and (pointer:fine){
 .jp-invest-page .jp-invest-photo:hover img,
 .jp-invest-page .jp-invest-story-motion:hover .jp-invest-photo img{transform:scale(1.045)}
 .jp-invest-page .jp-invest-stat-hover:hover .jp-invest-art-icon img{transform:rotate(-6deg) scale(1.07)}
 .jp-invest-page .jp-invest-stage-button .elementor-button:hover{transform:scale(1.1);box-shadow:0 8px 28px #20202024}
 .jp-invest-page .jp-invest-agreements summary:hover{background-color:#f1f6e9}
}
.jp-invest-page .jp-invest-sector-card:focus-within .jp-invest-photo img{transform:scale(1.045)}
.jp-invest-page .jp-invest-agreements summary:focus-visible{background-color:#f1f6e9}
@media(prefers-reduced-motion:reduce){
 .jp-invest-page .jp-invest-photo img,.jp-invest-page .jp-invest-hero-art img,
 .jp-invest-page .jp-invest-stat-hover .jp-invest-art-icon img,
 .jp-invest-page .jp-invest-stage-button .elementor-button{transform:none!important;transition:none!important}
 .jp-invest-page .jp-invest-agreements summary{transition:none!important}
}
/* Native Counter/Heading controls cannot respond to their parent card's hover. */
.jp-invest-page #invest-picture .jp-invest-stat-hover:hover :is(.elementor-counter-number-wrapper,.elementor-counter-title,.elementor-heading-title){color:#fff!important}
.jp-invest-page .jp-invest-deck-controls{display:none}
.jp-invest-page.jp-invest-ready .jp-invest-deck-controls{display:flex}
.jp-invest-page .jp-invest-deck.is-enhanced{display:grid;grid-template-columns:minmax(0,1fr);padding-bottom:68px;isolation:isolate}
.jp-invest-page .jp-invest-deck.is-enhanced>.jp-invest-sector-card{grid-area:1/1;align-self:stretch;transform-origin:50% 0;transition:transform .35s ease,filter .35s ease;box-shadow:0 8px 24px #20202026;min-width:0}
.jp-invest-page .jp-invest-sector-card[data-depth="0"]{z-index:3;transform:none;filter:none}
.jp-invest-page .jp-invest-sector-card[data-depth="1"]{z-index:2;transform:translateY(67px) scale(.945);background:#202020!important;filter:grayscale(1);pointer-events:none}
.jp-invest-page .jp-invest-sector-card[data-depth="2"]{z-index:1;transform:translateY(132px) scale(.88);background:#656565!important;filter:grayscale(1);pointer-events:none}
.jp-invest-page .jp-invest-deck-status p{margin:0}
.jp-invest-page .jp-invest-agreements .e-n-accordion-item{border-radius:16px;overflow:hidden;background:#fff}
.jp-invest-page .jp-invest-agreements .e-n-accordion-item[open]>summary{border-radius:0}
.jp-invest-page .jp-invest-art-icon{line-height:0;flex-shrink:0}
@media(min-width:768px){
 .jp-invest-page.jp-invest-ready .jp-invest-deck-controls{opacity:0;transition:opacity .2s ease;}
 .jp-invest-page #invest-sectors:hover .jp-invest-deck-controls,.jp-invest-page #invest-sectors:focus-within .jp-invest-deck-controls{opacity:1}
}
@media(max-width:767px){
 .jp-invest-page .jp-invest-deck.is-enhanced{padding-bottom:0}
 .jp-invest-page .jp-invest-deck.is-enhanced>.jp-invest-sector-card:not([data-depth="0"]){visibility:hidden;transform:none}
 .jp-invest-page .jp-invest-deck-controls{gap:12px}
}
@media(prefers-reduced-motion:reduce){.jp-invest-page .jp-invest-sector-card{transition:none!important}}
.jp-invest-page .jp-design-form .elementor-button-icon{order:2!important}
.jp-invest-page .jp-design-form .elementor-button-text{order:1!important}
.jp-invest-page .jp-invest-stat-hover .jp-invest-art-icon{transition:background-color .3s ease}
.jp-invest-page .jp-invest-stat-hover:hover .jp-invest-art-icon{background-color:#fff}
.jp-invest-page .jp-invest-stat-hover:hover .jp-invest-art-icon img{filter:brightness(0)}
@media(prefers-reduced-motion:reduce){.jp-invest-page .jp-invest-stat-hover,.jp-invest-page .jp-invest-stat-hover:hover{transform:none!important;transition:none!important}.jp-invest-page .jp-invest-stat-hover .jp-invest-art-icon{transition:none}}
.jp-invest-page .jp-invest-deck.is-enhanced{cursor:grab;touch-action:pan-y;user-select:none}
.jp-invest-page .jp-invest-deck.is-dragging{cursor:grabbing}
.jp-invest-page .jp-invest-deck.is-dragging>.jp-invest-sector-card[data-depth="0"]{transition:none}
.jp-invest-page .jp-invest-deck:focus-visible{outline:3px solid #202020;outline-offset:8px;border-radius:24px}
.jp-invest-page .jp-invest-deck.is-shuffling>.jp-invest-sector-card{transition:none;will-change:transform}
@media(max-width:767px){.jp-invest-page .jp-invest-deck.is-shuffling>.jp-invest-sector-card:not([data-depth="0"]){visibility:visible}}
.jp-invest-page .jp-invest-sector-card.is-transferring[data-depth]{background:var(--transfer-background)!important;isolation:isolate}
.jp-invest-page .jp-stack-color-fade{position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none}
.jp-invest-page.jp-invest-ready .jp-invest-deck .jp-invest-deck-controls{position:absolute;top:calc(50% - 34px);left:-24px;width:calc(100% + 48px);margin:0!important;transform:translateY(-50%);justify-content:space-between;flex-wrap:nowrap;z-index:10;opacity:1;pointer-events:none}
.jp-invest-page .jp-invest-deck-controls .elementor-button{width:48px;height:48px;padding:0!important;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:#202020;box-shadow:0 4px 18px #20202026;pointer-events:auto}
.jp-invest-page .jp-invest-deck-controls .elementor-button:hover{background:#202020;color:#fff}
.jp-invest-page .jp-invest-deck-controls .elementor-button-icon{margin:0!important;display:flex}
.jp-invest-page .jp-invest-deck-controls .elementor-button-icon svg{width:18px;height:18px;fill:currentColor}
.jp-invest-page .jp-invest-deck-controls .elementor-button-text,.jp-invest-page .jp-invest-deck-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:767px){.jp-invest-page.jp-invest-ready .jp-invest-deck .jp-invest-deck-controls{left:-14px;width:calc(100% + 28px);top:50%}.jp-invest-page .jp-invest-deck-controls .elementor-button{width:36px;height:36px}}
@media(min-width:1300px){.jp-invest-page.jp-invest-ready .jp-invest-deck .jp-invest-deck-controls{left:-64px;width:calc(100% + 128px)}}
@media(max-width:1299px){.jp-invest-page .jp-invest-deck.is-enhanced{width:calc(100% - 64px);align-self:center}.jp-invest-page.jp-invest-ready .jp-invest-deck .jp-invest-deck-controls{left:-48px;width:calc(100% + 96px)}.jp-invest-page .jp-invest-deck-controls .elementor-button{width:36px;height:36px}}
/* Responsive deck controls: preserve card width on phones and give touch targets
   enough room. These controls are repositioned by the deck enhancement. */
@media(max-width:1299px){
 .jp-invest-page .jp-invest-deck-controls .elementor-button{width:44px;height:44px}
 .jp-invest-page.jp-invest-ready .jp-invest-deck .jp-invest-deck-controls{left:-48px;width:calc(100% + 96px)}
}
@media(max-width:767px){
 .jp-invest-page .jp-invest-deck.is-enhanced{width:100%;padding-bottom:0;row-gap:24px}
 .jp-invest-page.jp-invest-ready .jp-invest-deck .jp-invest-deck-controls{position:relative;grid-area:2/1;top:auto;left:auto;width:100%;transform:none;justify-content:center;gap:20px}
 .jp-invest-page .jp-invest-deck-status{position:static!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible;clip-path:none;white-space:normal}
}
@media(pointer:coarse){
 .jp-invest-page .elementor-button{min-height:44px}
 .jp-invest-page .elementor-field-type-acceptance .elementor-field-option{display:flex;align-items:flex-start;gap:10px}
 .jp-invest-page .elementor-field-type-acceptance input{width:22px;height:22px;flex:0 0 22px;margin:3px 0 0}
 .jp-invest-page .elementor-field-type-acceptance .elementor-field-option label{min-height:44px;cursor:pointer}
}
