/* ==========================================================================
   Finsta — enhancements.css  (v3)
   Additive-only stylesheet. Loaded after style.css.

   v3 changes from v2:
     - Removed the custom top progress bar. The site's own rounded
       bottom-left progress circle (.page-scroll-circle, already built by
       main.js) is reused for BOTH vertical and horizontal modes instead.
     - Horizontal mode now uses noticeably more of the available width
       (wider containers) instead of leaving large empty gutters.
     - Smoother, more premium panel transition easing.
     - The footer is now reachable in horizontal mode as a final panel
       (previously it was hidden entirely).
   ========================================================================== */

/* ---------- 1. Page-transition curtain ------------------------------------ */
.finsta-page-fx{
  position:fixed;
  inset:0;
  z-index:9998;
  pointer-events:none;
  display:flex;
  flex-direction:column;
}
.finsta-page-fx-panel{
  flex:1 1 50%;
  background:linear-gradient(135deg,#0a0f24 0%,#1b2a6b 55%,#35aee5 100%);
  transform:scaleY(0);
  transform-origin:top;
  transition:transform .55s cubic-bezier(.77,0,.175,1);
  will-change:transform;
}
.finsta-page-fx-panel + .finsta-page-fx-panel{ transform-origin:bottom; }

body.finsta-page-ready .finsta-page-fx-panel{
  transform:scaleY(0);
  transition:transform .6s cubic-bezier(.77,0,.175,1);
}
body.finsta-page-leave .finsta-page-fx-panel{
  transform:scaleY(1);
  transition:transform .5s cubic-bezier(.77,0,.175,1);
}

body{ transition:opacity .35s ease, filter .35s ease; }
body.finsta-page-enter-init main,
body.finsta-page-enter-init .site-header,
body.finsta-page-enter-init .site-footer{ opacity:0; transform:translateY(14px); }
body.finsta-page-ready main,
body.finsta-page-ready .site-header,
body.finsta-page-ready .site-footer{
  opacity:1; transform:none;
  transition:opacity .55s ease .1s, transform .55s cubic-bezier(.2,.7,.2,1) .1s;
}
body.finsta-page-leave main{ opacity:.35; transition:opacity .35s ease; }

@media (prefers-reduced-motion: reduce){
  .finsta-page-fx-panel,
  body.finsta-page-ready main,
  body.finsta-page-ready .site-header,
  body.finsta-page-ready .site-footer{
    transition:none !important;
    transform:none !important;
    opacity:1 !important;
  }
}


/* ---------- 2. Small icon-only toggle (right, vertically centred) --------- */
.finsta-scroll-toggle{
  position:fixed;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  z-index:210;
  width:46px;
  height:46px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(14,20,40,.08);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border-radius:50%;
  box-shadow:0 10px 28px rgba(14,20,40,.16);
  color:#0a0f24;
  cursor:pointer;
  opacity:0;
  transition:box-shadow .3s cubic-bezier(.2,.7,.2,1), background .3s ease, opacity .5s ease .3s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
body.finsta-page-ready .finsta-scroll-toggle{ opacity:1; }

.finsta-scroll-toggle:hover{
  transform:translateY(-50%) scale(1.08);
  background:#fff;
  box-shadow:0 16px 36px rgba(14,20,40,.24);
}
.finsta-scroll-toggle:active{ transform:translateY(-50%) scale(.96); }
.finsta-scroll-toggle:focus-visible{
  outline:3px solid rgba(53,174,229,.5);
  outline-offset:3px;
}
.finsta-scroll-toggle-label{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.finsta-scroll-toggle-icon{
  position:relative;
  display:inline-flex;
  width:30px; height:30px;
  border-radius:50%;
  background:linear-gradient(135deg,#35aee5,#1b2a6b);
  color:#fff;
  align-items:center; justify-content:center;
  flex:0 0 auto;
  overflow:hidden;
  transition:background .35s ease;
}
.finsta-scroll-toggle-icon svg{
  position:absolute; width:18px; height:18px;
  transition:opacity .3s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.finsta-scroll-toggle-icon .ico-h{ opacity:1; transform:rotate(0); }
.finsta-scroll-toggle-icon .ico-v{ opacity:0; transform:rotate(-90deg); }
.finsta-scroll-toggle[aria-pressed="true"] .finsta-scroll-toggle-icon{
  background:linear-gradient(135deg,#f58220,#f5a663);
}
.finsta-scroll-toggle[aria-pressed="true"] .ico-h{ opacity:0; transform:rotate(90deg); }
.finsta-scroll-toggle[aria-pressed="true"] .ico-v{ opacity:1; transform:rotate(0); }

@media (max-width: 900px){ .finsta-scroll-toggle{ display:none !important; } }


/* ---------- 3. Horizontal mode — full-bleed, wide, professional panels ---- */

/* The site applies a global body{zoom:.91} "compact view". Neutralise it
   only while horizontal mode is active so every panel genuinely fills the
   screen; vertical-mode pages are unaffected. */
@supports (zoom: .91){
  body.finsta-horizontal-mode{ zoom:1 !important; }
}

body.finsta-horizontal-mode{
  overflow:hidden !important;
  height:100vh;
}

body.finsta-horizontal-mode .site-header{ padding:10px 0; }
body.finsta-horizontal-mode .site-header .header-inner{
  box-shadow:0 16px 44px rgba(14,20,40,.09);
}
body.finsta-horizontal-mode .back-to-top{
  opacity:0 !important; pointer-events:none !important; visibility:hidden !important;
}

/* Main becomes a horizontal flex track with smoother scroll physics */
body.finsta-horizontal-mode > main,
body.finsta-horizontal-mode main{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  width:100vw;
  height:100vh;
  overflow:hidden;
  padding:0;
  margin:0;
  scroll-behavior:smooth;
  will-change:scroll-position;
}

/* Every panel (sections AND the footer-panel) is exactly one viewport */
body.finsta-horizontal-mode main > section,
body.finsta-horizontal-mode main > .finsta-footer-panel{
  flex:0 0 100vw !important;
  width:100vw !important;
  min-width:100vw !important;
  max-width:100vw !important;
  height:100vh !important;
  min-height:100vh !important;
  max-height:100vh !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  position:relative;
  isolation:isolate;
}

/* Use noticeably more of the available width in horizontal mode instead of
   floating in a narrow centred column — this is the biggest visual lever
   for a "professional, wide" feel on large screens. */
body.finsta-horizontal-mode{
  --max: 1640px;
}
body.finsta-horizontal-mode .hero .container-wide{ max-width:1520px; }
body.finsta-horizontal-mode .container-narrow{ width:min(1040px,calc(100% - 64px)); }

/* Content wrapper: centres + scales-to-fit tall sections */
.finsta-hp-wrap{ display:block; }
body.finsta-horizontal-mode .finsta-hp-wrap{
  position:absolute;
  left:0; right:0; top:50%;
  transform-origin:center center;
  transform:translateY(-50%) scale(var(--finsta-hp-scale, 1));
  width:100%;
  will-change:transform;
}

body.finsta-horizontal-mode main > .hero{
  background:radial-gradient(ellipse at 20% 0%, #1e2a5c 0%, transparent 55%),
             radial-gradient(ellipse at 80% 10%, #2b1e5c 0%, transparent 50%),
             linear-gradient(165deg,#0a0f24 0%,#141b3a 55%,#1a1f45 100%);
}

body.finsta-horizontal-mode .reveal{
  opacity:1 !important;
  transform:none !important;
}

/* Smooth, refined panel entrance — subtle scale + fade reads as more
   premium than a plain horizontal slide. */
body.finsta-horizontal-mode main > section,
body.finsta-horizontal-mode main > .finsta-footer-panel{
  animation:finstaPanelIn .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes finstaPanelIn{
  from{ opacity:0; transform:scale(.985); }
  to  { opacity:1; transform:scale(1); }
}


/* ---------- 4. Footer as a reachable final panel in horizontal mode ------- */
.finsta-footer-panel{ display:none; }
body.finsta-horizontal-mode .finsta-footer-panel.site-footer{
  display:block;
}
body.finsta-horizontal-mode .finsta-footer-panel .finsta-hp-wrap{
  padding:0 24px;
  width:100%;
}


/* ---------- 5. Rounded progress circle — reused for both modes ------------ */
/* The site already ships .page-scroll-circle (bottom-left rounded ring,
   driven by --page-dash). We keep it visible on every page/mode and, in
   horizontal mode, drive its CSS vars from horizontal scroll progress
   instead of window.scrollY (handled in JS). No visual/style changes here
   — this block intentionally left empty of overrides so the original
   design is reused exactly as-is. */
body.finsta-horizontal-mode .page-scroll-circle{
  z-index:205;
}


/* ---------- Small-screen fallback (mobile) -------------------------------- */
@media (max-width:900px){
  body.finsta-horizontal-mode{ overflow:auto !important; height:auto; }
  body.finsta-horizontal-mode main{ display:block; height:auto; width:100%; }
  body.finsta-horizontal-mode main > section{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    padding:120px 0 !important;
  }
  body.finsta-horizontal-mode .finsta-hp-wrap{
    position:static;
    transform:none;
    width:auto;
  }
  .finsta-footer-panel{ display:none !important; }
  body.finsta-horizontal-mode .site-footer:not(.finsta-footer-panel){ display:block; }
}

@media (prefers-reduced-motion: reduce){
  body.finsta-horizontal-mode main > section,
  body.finsta-horizontal-mode main > .finsta-footer-panel{ animation:none; }
}


/* ---------- 6. 30-second Get in Touch modal — reference-video inspired ---- */
body.finsta-lead-modal-open{ overflow:hidden !important; }
.finsta-lead-modal{
  position:fixed;
  inset:0;
  z-index:10020;
  display:grid;
  place-items:center;
  padding:24px;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease, visibility .28s ease;
}
.finsta-lead-modal.is-open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}
.finsta-lead-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,10,24,.72);
  backdrop-filter:blur(8px) saturate(.8);
  -webkit-backdrop-filter:blur(8px) saturate(.8);
}
.finsta-lead-dialog{
  position:relative;
  z-index:1;
  width:min(1040px,calc(100vw - 48px));
  max-height:min(760px,calc(100vh - 48px));
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.38);
  border-radius:28px;
  background:#fff;
  box-shadow:0 34px 90px rgba(0,0,0,.32),0 8px 30px rgba(8,18,48,.18);
  transform:translateY(18px) scale(.975);
  opacity:0;
  transition:transform .42s cubic-bezier(.16,1,.3,1),opacity .28s ease;
}
.finsta-lead-modal.is-open .finsta-lead-dialog{
  transform:translateY(0) scale(1);
  opacity:1;
}
.finsta-lead-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:5;
  width:38px;
  height:38px;
  border:1px solid rgba(8,18,48,.08);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.92);
  color:#111831;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(9,19,47,.12);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.finsta-lead-close:hover{ transform:rotate(8deg) scale(1.06); background:#fff; box-shadow:0 12px 26px rgba(9,19,47,.18); }
.finsta-lead-close svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }

.finsta-lead-visual{
  position:relative;
  min-height:620px;
  padding:30px 30px 28px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(circle at 18% 15%,rgba(77,199,255,.34),transparent 30%),
    radial-gradient(circle at 86% 78%,rgba(245,130,32,.24),transparent 34%),
    linear-gradient(145deg,#0b1230 0%,#182965 54%,#153e76 100%);
  color:#fff;
}
.finsta-lead-visual::before,
.finsta-lead-visual::after{
  content:"";
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
}
.finsta-lead-visual::before{ width:360px; height:360px; right:-180px; top:-120px; }
.finsta-lead-visual::after{ width:260px; height:260px; left:-150px; bottom:-120px; }
.finsta-lead-brand{ position:relative; z-index:2; }
.finsta-lead-brand img{
  width:150px;
  height:auto;
  object-fit:contain;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}
.finsta-lead-visual-copy{ position:relative; z-index:2; margin-top:44px; max-width:410px; }
.finsta-lead-visual-copy>span{
  display:inline-flex;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.finsta-lead-visual-copy h2{
  margin:16px 0 10px;
  color:#fff;
  font-size:clamp(26px,2.25vw,36px);
  line-height:1.08;
  letter-spacing:-.035em;
}
.finsta-lead-visual-copy p{ margin:0; color:rgba(255,255,255,.73); font-size:14px; line-height:1.65; }
.finsta-lead-product{
  position:relative;
  z-index:2;
  width:118%;
  max-width:none;
  margin:28px -18% 0 3%;
  filter:drop-shadow(0 24px 28px rgba(0,0,0,.34));
  transform:rotate(-1.5deg);
}
.finsta-lead-proof{
  position:relative;
  z-index:2;
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.finsta-lead-proof span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.9);
  font-size:11px;
  font-weight:700;
}
.finsta-lead-proof b{ color:#6ee7c0; }

.finsta-lead-form-wrap{
  padding:44px 42px 34px;
  overflow:auto;
  background:
    radial-gradient(circle at 100% 0%,rgba(53,174,229,.09),transparent 26%),
    #fff;
}
.finsta-lead-heading{ padding-right:38px; }
.finsta-lead-kicker{
  display:inline-block;
  margin-bottom:6px;
  color:#245dc7;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.finsta-lead-heading h2{
  margin:0;
  color:#0d1532;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.04em;
}
.finsta-lead-heading p{ margin:10px 0 0; color:#68708a; font-size:13.5px; line-height:1.55; }
.finsta-lead-form{ margin-top:24px; }
.finsta-lead-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.finsta-lead-form label{ display:block; min-width:0; }
.finsta-lead-form label>span{
  display:block;
  margin:0 0 6px 2px;
  color:#27314f;
  font-size:11.5px;
  font-weight:750;
}
.finsta-lead-form input,
.finsta-lead-form select,
.finsta-lead-form textarea{
  width:100%;
  min-height:46px;
  border:1px solid #dce2ec;
  border-radius:12px;
  background:#fbfcff;
  color:#121a35;
  padding:11px 13px;
  font:inherit;
  font-size:13px;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
  box-sizing:border-box;
}
.finsta-lead-form textarea{ min-height:74px; resize:vertical; }
.finsta-lead-form input:focus,
.finsta-lead-form select:focus,
.finsta-lead-form textarea:focus{
  border-color:#4a8ff0;
  background:#fff;
  box-shadow:0 0 0 4px rgba(74,143,240,.12);
}
.finsta-lead-message{ margin-top:2px; }
.finsta-lead-submit{
  width:100%;
  min-height:50px;
  margin-top:14px;
  border:0;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:linear-gradient(135deg,#234fd4,#226fdf 55%,#2d9eea);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(35,94,216,.24);
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.finsta-lead-submit:hover{ transform:translateY(-1px); filter:saturate(1.1); box-shadow:0 16px 32px rgba(35,94,216,.3); }
.finsta-lead-submit:disabled{ opacity:.65; cursor:wait; transform:none; }
.finsta-lead-status{ min-height:18px; margin-top:10px; font-size:12px; line-height:1.4; }
.finsta-lead-status.success{ color:#0d7c53; }
.finsta-lead-status.error{ color:#b52835; }
.finsta-lead-note{ margin:5px 0 0; color:#8a91a5; font-size:10.5px; text-align:center; }
.finsta-lead-hp{ position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; }

@media (max-width:900px){
  .finsta-lead-modal{ padding:14px; }
  .finsta-lead-dialog{
    width:min(680px,calc(100vw - 28px));
    max-height:calc(100vh - 28px);
    grid-template-columns:1fr;
    border-radius:22px;
    overflow:auto;
  }
  .finsta-lead-visual{ min-height:230px; padding:22px 24px; }
  .finsta-lead-brand img{ width:120px; }
  .finsta-lead-visual-copy{ margin-top:22px; max-width:70%; }
  .finsta-lead-visual-copy h2{ font-size:25px; }
  .finsta-lead-visual-copy p,.finsta-lead-proof{ display:none; }
  .finsta-lead-product{ position:absolute; width:52%; right:-6%; bottom:8px; margin:0; }
  .finsta-lead-form-wrap{ padding:28px 24px 24px; overflow:visible; }
  .finsta-lead-heading h2{ font-size:30px; }
}
@media (max-width:560px){
  .finsta-lead-modal{ padding:8px; }
  .finsta-lead-dialog{ width:calc(100vw - 16px); max-height:calc(100vh - 16px); border-radius:18px; }
  .finsta-lead-close{ top:10px; right:10px; width:34px; height:34px; }
  .finsta-lead-visual{ min-height:170px; padding:18px; }
  .finsta-lead-brand img{ width:100px; padding:7px 9px; }
  .finsta-lead-visual-copy{ margin-top:16px; max-width:72%; }
  .finsta-lead-visual-copy>span{ display:none; }
  .finsta-lead-visual-copy h2{ margin:0; font-size:20px; line-height:1.14; }
  .finsta-lead-product{ width:48%; right:-4%; bottom:2px; }
  .finsta-lead-form-wrap{ padding:22px 17px 18px; }
  .finsta-lead-heading{ padding-right:28px; }
  .finsta-lead-heading h2{ font-size:27px; }
  .finsta-lead-heading p{ font-size:12.5px; }
  .finsta-lead-form{ margin-top:18px; }
  .finsta-lead-row{ grid-template-columns:1fr; gap:10px; margin-bottom:10px; }
  .finsta-lead-form input,.finsta-lead-form select,.finsta-lead-form textarea{ min-height:44px; }
}
@media (prefers-reduced-motion:reduce){
  .finsta-lead-modal,.finsta-lead-dialog,.finsta-lead-close,.finsta-lead-submit{ transition:none !important; }
}
