/* SQUARE + MOTION layer. Loads after css/style.css. Delete the <link> in index.php to undo. */

/* ---------- 1. everything square ---------- */
:root{--r:0}
/* *,*::before,*::after{border-radius:0!important} */

/* ---------- 2. flat, no soft shadows: structure comes from borders and hard offsets ---------- */
.mj *{box-shadow:none!important}
.mj-header.scrolled{border-bottom:1px solid rgba(255,255,255,.14)}
.mj-card{background:#e7f4ff;border:1px solid #e7f4ff;border-bottom:4px solid #d0383d}
.mj #overview .mj-split{border:1px solid #e4d9c8; margin: auto;}
.mj #overview .mj-quote{border:1px solid #e4d9c8;border-left:4px solid #d0383d}
.mj-plan-fig,.mj-loc-map iframe{border:1px solid #e4d9c8}
.mj-split-img img{box-shadow:-14px 14px 0 #f6efe4!important}

/* ---------- 3. hero: one orchestrated entrance, starts when the preloader lifts ---------- */
.mj-hero h1,.mj-hero-sub,.mj-hero-tags,.mj-hero-cta,.mj-rera,.mj-kicker{opacity:0}
.mj-hero h1{clip-path:inset(0 100% 0 0)}
.mj-hero-strip{transform:translateY(100%);opacity:0}
.hero-go .mj-kicker{animation:sqFade .6s .05s both}
.hero-go .mj-hero h1{opacity:1;animation:sqWipe 1.1s .15s cubic-bezier(.77,0,.18,1) both}
.hero-go .mj-hero-sub{animation:sqUp .7s .75s both}
.hero-go .mj-hero-tags{animation:sqUp .7s .9s both}
.hero-go .mj-hero-cta{animation:sqUp .7s 1.05s both}
.hero-go .mj-rera{animation:sqFade .8s 1.3s both}
.hero-go .mj-hero-strip{animation:sqRise .9s 1.1s cubic-bezier(.22,.8,.2,1) both}
@keyframes sqWipe{from{clip-path:inset(0 100% 0 0);opacity:1}to{clip-path:inset(0 0 0 0);opacity:1}}
@keyframes sqUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes sqFade{from{opacity:0}to{opacity:1}}
@keyframes sqRise{from{transform:translateY(100%);opacity:0}to{transform:none;opacity:1}}
/* slow push-in on the active banner */
.mj-hero-bg picture.active img{animation:sqKen 10s ease-out both}
@keyframes sqKen{from{transform:scale(1.1)}to{transform:scale(1)}}

/* ---------- 4. scroll: images wipe in like a shutter, text just settles ---------- */
.js-reveal .mj-reveal{transform:translateY(14px);transition:opacity .7s,transform .7s}
.js-reveal .mj-reveal.in{transform:none}
.js-reveal .mj-split-img.mj-reveal,.js-reveal .mj-plan-fig.mj-reveal{opacity:1;transform:none;clip-path:inset(0 100% 0 0);transition:clip-path 1.1s cubic-bezier(.77,0,.18,1)}
.js-reveal .mj-split-img.mj-reveal.in,.js-reveal .mj-plan-fig.mj-reveal.in{clip-path:inset(0 0 0 0)}
.js-reveal .mj-split-img.mj-reveal img{transform:scale(1.18);transition:transform 1.6s cubic-bezier(.22,.8,.2,1)}
.js-reveal .mj-split-img.mj-reveal.in img{transform:none}
/* grids step in one after another */
.mj-cards4 .mj-card:nth-child(2){transition-delay:.08s}
.mj-cards4 .mj-card:nth-child(3){transition-delay:.16s}
.mj-cards4 .mj-card:nth-child(4){transition-delay:.24s}

/* ---------- 5. interaction: hard-edged hover states ---------- */
.mj-card{transition:transform .25s,border-color .25s,box-shadow .25s}
.mj-card:hover{transform:translate(-5px,-5px);box-shadow:7px 7px 0 #0d2b33!important;border-color:#0d2b33}
.mj-btn{background-repeat:no-repeat;background-position:left center;background-size:0% 100%;transition:background-size .4s cubic-bezier(.77,0,.18,1),color .3s,border-color .3s}
.mj .mj-btn-gold{background-color: #115ea1;}
.mj .mj-btn-gold:hover{background-color:#d0383d;color:#fff;transform:none;background-size:100% 100%}
.mj .mj-btn-dark{background-image:linear-gradient(#115ea1,#115ea1)}
.mj .mj-btn-dark:hover{background-size:100% 100%;color:#fff}
.mj .mj-btn-line{background-image:linear-gradient(#d4793f,#d4793f)}
.mj .mj-btn-line:hover{background-size:100% 100%;border-color:#d4793f;color:#fff}
.mj-gs-thumbs button,.mj-rail-card{overflow:hidden}
.mj-rail-card:hover img{transform:scale(1.06)}
.mj-nav a:not(.mj-btn):after{height:3px}

/* scroll progress: a flat bar along the top edge */
.sq-progress{position:fixed;top:0;left:0;height:3px;width:100%;background:#d4793f;transform:scaleX(0);transform-origin:left;z-index:2147483000;pointer-events:none}

@media (prefers-reduced-motion:reduce){
  .mj-hero h1,.mj-hero-sub,.mj-hero-tags,.mj-hero-cta,.mj-rera,.mj-kicker,.mj-hero-strip{opacity:1!important;transform:none!important;clip-path:none!important;animation:none!important}
  .js-reveal .mj-split-img.mj-reveal,.js-reveal .mj-plan-fig.mj-reveal{clip-path:none;transition:none}
  .js-reveal .mj-split-img.mj-reveal img{transform:none;transition:none}
  .mj-hero-bg picture.active img{animation:none}
  .sq-progress{display:none}
}
