/* StudioPIC — UX enhancements styles */

/* ===================== How it works (self-running flow) ===================== */
.hiw{ padding-block:clamp(36px,5vw,56px); background:var(--bg); }
.hiw__grid{ position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.hiw__track{ position:absolute; top:50%; left:8%; right:8%; height:2px; background:var(--line); border-radius:2px; transform:translateY(-50%); z-index:0; overflow:hidden; }
.hiw__fill{ position:absolute; inset:0 auto 0 0; height:100%; background:linear-gradient(90deg, var(--purple), var(--teal)); border-radius:2px; transition:width .9s var(--ease-out); }
.hiw__step{ position:relative; z-index:1; display:flex; align-items:center; gap:16px; background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--r); padding:20px 22px; box-shadow:var(--sh-1);
  transition:transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .4s var(--ease); }
.hiw__step.is-active{ transform:translateY(-6px); box-shadow:var(--sh-3); border-color:var(--purple-100); }
.hiw__n{ position:absolute; top:-10px; left:18px; font-family:var(--font-mono); font-size:11px; font-weight:700; color:#fff; background:var(--faint); width:24px; height:24px; border-radius:50%; display:grid; place-items:center; box-shadow:var(--sh-1);
  transition:background-color .4s var(--ease), transform .4s var(--ease-out); }
.hiw__n svg{ font-size:13px; }
.hiw__step.is-active .hiw__n{ background:var(--purple); transform:scale(1.15); }
.hiw__step.is-done .hiw__n{ background:var(--teal); }
.hiw__ic{ width:46px; height:46px; flex:none; border-radius:var(--r); background:var(--surface-2); color:var(--muted); display:grid; place-items:center; font-size:22px;
  transition:background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease-out); }
.hiw__step.is-active .hiw__ic{ background:var(--purple); color:#fff; transform:scale(1.06); }
.hiw__step.is-done .hiw__ic{ background:var(--teal-50); color:var(--teal); }
.hiw__step h3{ font-size:16px; margin-bottom:3px; }
.hiw__step p{ font-size:13.5px; color:var(--ink-soft); line-height:1.4; }
.hiw__arr{ position:absolute; right:-21px; top:50%; transform:translateY(-50%); color:var(--faint); font-size:18px; z-index:2; }
.hiw__step.is-done .hiw__arr{ color:var(--teal); }

/* themed icon micro-motion on the active step */
.hiw__step.is-active.s-fly .hiw__ic svg{ animation:hiwFly 1.2s var(--ease-out) infinite; }
@keyframes hiwFly{ 0%{ transform:translate(-3px,2px); } 50%{ transform:translate(2px,-2px); } 100%{ transform:translate(-3px,2px); } }
.hiw__step.is-active.s-paint .hiw__ic{ animation:hiwPaint 2s linear infinite; }
@keyframes hiwPaint{ 0%{ filter:hue-rotate(0deg); } 100%{ filter:hue-rotate(40deg); } }
.hiw__step.is-active.s-paint .hiw__ic svg{ animation:hiwWobble 1.4s var(--ease-out) infinite; }
@keyframes hiwWobble{ 0%,100%{ transform:rotate(-7deg); } 50%{ transform:rotate(7deg); } }
.hiw__step.is-active.s-snap .hiw__ic svg{ animation:hiwSnap 1.1s var(--ease-out) infinite; }
@keyframes hiwSnap{ 0%,72%,100%{ transform:scale(1); } 80%{ transform:scale(.86); } 88%{ transform:scale(1.08); } }
.hiw__step.is-active.s-snap .hiw__ic::after{ content:""; position:absolute; inset:0; border-radius:inherit; background:#fff; opacity:0; animation:hiwFlash 1.1s var(--ease-out) infinite; }
@keyframes hiwFlash{ 0%,74%,100%{ opacity:0; } 82%{ opacity:.85; } }
.hiw__ic{ position:relative; overflow:hidden; }

@media (max-width:780px){ .hiw__grid{ grid-template-columns:1fr; } .hiw__arr{ display:none; } .hiw__track{ display:none; } }
@media (prefers-reduced-motion:reduce){
  .hiw__step.is-active .hiw__ic svg, .hiw__step.is-active .hiw__ic, .hiw__step.is-active .hiw__ic::after{ animation:none; }
}

/* ===================== Testimonials ===================== */
.tm{ background:var(--surface); }
.tm__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:48px; }
@media (max-width:880px){ .tm__grid{ grid-template-columns:1fr; } .tm__grid .tm__card:nth-child(n+2){ display:none; } }
.tm__card{ padding:30px 30px 26px; display:flex; flex-direction:column; gap:16px; }
.tm__stars{ display:flex; gap:3px; color:#E8B33D; font-size:17px; }
.tm__card blockquote{ margin:0; font-family:var(--font-head); font-size:19px; line-height:1.4; color:var(--ink); font-weight:500; letter-spacing:-.01em; flex:1; }
.tm__card figcaption{ display:flex; align-items:center; gap:13px; padding-top:6px; border-top:1px solid var(--line-soft); }
.tm__av{ width:42px; height:42px; flex:none; border-radius:50%; background:var(--purple); color:#fff; display:grid; place-items:center; font-family:var(--font-head); font-weight:700; font-size:15px; }
.tm--t .tm__av{ background:var(--teal); }
.tm__card figcaption b{ display:block; font-size:15px; }
.tm__card figcaption i{ display:block; font-style:normal; font-size:13px; color:var(--muted); margin-top:2px; }
.tm__card{ animation:tmIn .6s var(--ease-out) both; }
@keyframes tmIn{ 0%{ opacity:0; transform:translateY(14px) scale(.98); } 100%{ opacity:1; transform:none; } }
.tm__dots{ display:flex; gap:9px; justify-content:center; margin-top:34px; }
.tm__dot{ width:9px; height:9px; border-radius:50%; border:0; background:var(--surface-3); cursor:pointer; transition:.25s var(--ease); padding:0; }
.tm__dot:hover{ background:var(--faint); }
.tm__dot.is-on{ background:var(--purple); width:26px; border-radius:6px; }

/* ===================== Stats band (counters) ===================== */
.statband{ padding-block:clamp(36px,5vw,60px); background:var(--bg); }
.statband__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:680px){ .statband__grid{ grid-template-columns:1fr 1fr; gap:30px 16px; } }
.statband__item{ text-align:center; position:relative; }
.statband__item::after{ content:""; position:absolute; right:-12px; top:14%; height:72%; width:1px; background:var(--line); }
.statband__grid .statband__item:nth-child(4)::after{ display:none; }
@media (max-width:680px){ .statband__item:nth-child(even)::after{ display:none; } }
.statband__n{ font-family:var(--font-head); font-size:clamp(34px,4.5vw,48px); font-weight:700; letter-spacing:-.02em;
  background:linear-gradient(120deg,var(--purple),var(--teal)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.statband__l{ font-size:14px; color:var(--ink-soft); margin-top:8px; }

/* ===================== Lightbox ===================== */
.lb{ position:fixed; inset:0; z-index:9998; background:rgba(20,17,26,.86); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; gap:18px; padding:24px; animation:lbIn .25s var(--ease-out); }
@keyframes lbIn{ from{ opacity:0; } to{ opacity:1; } }
.lb__fig{ margin:0; max-width:min(1000px,90vw); max-height:86vh; display:flex; flex-direction:column; align-items:center; gap:12px; }
.lb__fig img{ max-width:100%; max-height:80vh; border-radius:var(--r); box-shadow:0 30px 80px rgba(0,0,0,.5); object-fit:contain; }
.lb__fig figcaption{ font-family:var(--font-mono); font-size:12px; letter-spacing:.1em; color:rgba(255,255,255,.7); }
.lb__x{ position:absolute; top:20px; right:22px; width:46px; height:46px; border-radius:50%; border:0; background:rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; font-size:20px; transition:.2s; }
.lb__x:hover{ background:rgba(255,255,255,.25); }
.lb__nav{ width:50px; height:50px; flex:none; border-radius:50%; border:0; background:rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; font-size:20px; transition:.2s; }
.lb__nav:hover{ background:rgba(255,255,255,.28); }
@media (max-width:640px){ .lb__nav{ position:absolute; bottom:24px; } .lb__prev{ left:30%; } .lb__next{ right:30%; } }

/* clickable marquee photos */
.gallery .mph{ cursor:zoom-in; position:relative; }
.gallery .mph::after{ content:""; position:absolute; inset:0; background:rgba(124,63,196,0); transition:background .3s; }
.gallery .mph:hover::after{ background:rgba(124,63,196,.12); }

/* ===================== Enquiry / estimate bar ===================== */
.ebar{ position:fixed; left:50%; bottom:18px; transform:translate(-50%, 165%); z-index:70;
  display:flex; align-items:center; gap:16px; background:var(--ink); color:#fff;
  padding:12px 12px 12px 22px; border-radius:var(--r); box-shadow:0 10px 28px rgba(24,21,31,.30);
  transition:transform .45s var(--ease-out), opacity .35s var(--ease); opacity:0; max-width:calc(100vw - 28px); }
.ebar.is-on{ opacity:1; }
/* selection mode: always fully present */
.ebar.has-sel.is-on{ transform:translate(-50%,0); opacity:1; }
/* prompt mode: compact pill that unfurls its actions on hover */
.ebar.prompt{ background:rgba(24,21,31,.8); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); gap:0; padding:11px 20px; }
.ebar.prompt.is-on{ transform:translate(-50%,0); opacity:.72; }
.ebar.prompt.is-on:hover, .ebar.prompt.is-on:focus-within{ opacity:1; }
.ebar.prompt .ebar__act{ max-width:0; opacity:0; overflow:hidden; margin-left:0;
  transition:max-width .45s var(--ease-out), opacity .3s var(--ease), margin-left .3s var(--ease); }
.ebar.prompt.is-on:hover .ebar__act, .ebar.prompt.is-on:focus-within .ebar__act{ max-width:340px; opacity:1; margin-left:16px; }
.ebar__info{ display:flex; align-items:center; gap:16px; min-width:0; }
.ebar__est{ display:flex; flex-direction:column; line-height:1.1; }
.ebar__est i{ font-style:normal; font-size:11px; color:rgba(255,255,255,.55); font-family:var(--font-mono); letter-spacing:.04em; }
.ebar__est b{ font-family:var(--font-head); font-size:21px; font-weight:700; }
.ebar__sum{ display:flex; gap:7px; }
.ebar__sum .sp-chip{ background:rgba(255,255,255,.12); color:#fff; border-color:transparent; }
.ebar__sum .sp-chip--accent{ background:var(--purple); color:#fff; }
.ebar__lead{ display:flex; align-items:center; gap:9px; font-weight:600; font-size:15px; }
.ebar__lead svg{ color:var(--purple-100); font-size:18px; }
.ebar__act{ display:flex; align-items:center; gap:8px; }
.ebar__clear{ width:34px; height:34px; border-radius:50%; border:0; background:rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; font-size:15px; transition:.2s; }
.ebar__clear:hover{ background:rgba(255,255,255,.24); }
.ebar .ebar__phone{ background:transparent; color:#fff; border-color:rgba(255,255,255,.25); box-shadow:none; }
.ebar .ebar__phone:hover{ background:rgba(255,255,255,.1); }
@media (max-width:560px){
  .ebar{ left:14px; right:14px; transform:translateY(165%); bottom:14px; }
  .ebar.has-sel.is-on{ transform:translateY(0); }
  .ebar.prompt.is-on{ transform:translateY(0); opacity:.95; gap:10px; padding:11px 14px; }
  .ebar.prompt .ebar__act{ max-width:none; opacity:1; margin-left:10px; }
  .ebar__sum{ display:none; }
  .ebar__lead i{ display:none; }
}

/* ===================== Back-to-top ===================== */
.scrolltop{ position:fixed; right:18px; bottom:18px; z-index:65; width:46px; height:46px; border-radius:var(--r);
  border:1px solid var(--line); background:var(--surface); color:var(--ink); box-shadow:0 6px 16px rgba(24,21,31,.16);
  display:grid; place-items:center; font-size:20px; opacity:0; transform:translateY(16px); pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease-out), color .2s, box-shadow .2s; }
.scrolltop.is-on{ opacity:1; transform:none; pointer-events:auto; }
.scrolltop:hover{ color:var(--purple); transform:translateY(-2px); box-shadow:0 8px 20px rgba(24,21,31,.22); }
@media (max-width:560px){ .scrolltop{ bottom:84px; right:14px; } }

/* ===================== Add-on selectable state ===================== */
.acard{ position:relative; cursor:pointer; transition:transform .3s var(--ease-out), box-shadow .3s var(--ease), outline-color .2s var(--ease); }
.acard:hover{ transform:translateY(-4px); box-shadow:var(--sh-3); }
.acard__pick{ position:absolute; top:12px; right:12px; z-index:3; width:34px; height:34px; border-radius:50%;
  background:var(--surface); border:1.5px solid var(--line); color:var(--muted); display:grid; place-items:center;
  font-size:17px; box-shadow:var(--sh-1); transition:.2s; }
.acard:hover .acard__pick{ border-color:var(--purple); color:var(--purple); }
.acard.is-picked{ outline:2px solid var(--purple); outline-offset:-2px; }
.acard.is-picked .acard__pick{ background:var(--purple); border-color:var(--purple); color:#fff; }
.acard__add{ margin:0 24px 24px; }

/* ===================== Package comparison table ===================== */
.pkg__compare-toggle{ display:flex; justify-content:center; margin-top:30px; }
.cmp{ margin-top:30px; overflow:hidden; max-height:0; transition:max-height .5s var(--ease); }
.cmp.is-open{ max-height:1400px; }
.cmp__inner{ overflow-x:auto; border-radius:var(--r); border:1px solid var(--line-soft); box-shadow:var(--sh-2); background:var(--surface); }
.cmp table{ width:100%; border-collapse:collapse; min-width:680px; font-size:14.5px; }
.cmp th, .cmp td{ padding:14px 16px; text-align:center; border-bottom:1px solid var(--line-soft); }
.cmp th:first-child, .cmp td:first-child{ text-align:left; color:var(--ink-soft); font-weight:500; position:sticky; left:0; background:var(--surface); }
.cmp thead th{ font-family:var(--font-head); font-weight:700; color:var(--ink); background:var(--surface-2); font-size:13.5px; }
.cmp thead th.pop{ color:var(--purple); }
.cmp .price-row td{ font-family:var(--font-head); font-weight:700; color:var(--ink); font-size:16px; }
.cmp tbody tr:last-child td{ border-bottom:0; }
.cmp .yes{ color:var(--teal); font-weight:700; }
.cmp .no{ color:var(--faint); }
.spin-slow{ transform-origin:50% 50%; animation:spinSlow 7s linear infinite; }
@keyframes spinSlow{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .spin-slow{ animation:none; } }

/* ===================== Contact selection summary ===================== */
.contact__sel{ margin-top:26px; background:var(--surface); border:1px solid var(--purple-100); border-radius:var(--r); padding:18px 20px; box-shadow:var(--sh-1); }
.contact__sel-head{ display:flex; justify-content:space-between; align-items:center; }
.contact__sel-head span{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; color:var(--purple-700); }
.contact__sel-head svg{ font-size:16px; }
.contact__sel-head button{ border:0; background:transparent; color:var(--muted); font-size:13px; font-weight:600; }
.contact__sel-head button:hover{ color:var(--purple); }
.contact__sel-chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.contact__sel-est{ display:flex; align-items:baseline; gap:10px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line-soft); }
.contact__sel-est i{ font-style:normal; font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; color:var(--muted); }
.contact__sel-est b{ font-family:var(--font-head); font-size:24px; font-weight:700; color:var(--ink); }

/* smooth accent switching on tinted icon tiles */
.why__ic, .hiw__ic, .cpoint__ic, .tm__av{ transition:background-color .35s var(--ease), color .35s var(--ease); }
