/* NEX8 HOME HARMONY — 28 Oct 2026
   Dedicated section rhythm and restrained carousel palette.
   No changes to public Admin, Design Studio, dynamic records or images. */
.nex8-home{
  --home-surface-white:#fff;
  --home-surface-blue:#edf4f8;
  --home-surface-mist:#f3f8fb;
  --home-ink:#10253a;
  --home-brand-blue:#0788bb;
  --home-accent:#f27623;
}
.nex8-home .nex8-section--categories,
.nex8-home .nex8-section--featured,
.nex8-home .nex8-section--portfolio,
.nex8-home .nex8-process,
.nex8-home .nex8-about,
.nex8-home .nex8-faq{
  position:relative;
  isolation:isolate;
}
.nex8-home .nex8-section--categories::before,
.nex8-home .nex8-section--featured::before,
.nex8-home .nex8-section--portfolio::before,
.nex8-home .nex8-process::before,
.nex8-home .nex8-about::before,
.nex8-home .nex8-faq::before{
  content:"";
  position:absolute;
  z-index:-1;
  pointer-events:none;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
}
.nex8-home .nex8-section--categories::before{background:var(--home-surface-white)}
.nex8-home .nex8-section--featured::before{background:var(--home-surface-blue)}
.nex8-home .nex8-section--portfolio::before{background:var(--home-surface-white)}
.nex8-home .nex8-process::before{background:var(--home-surface-mist)}
.nex8-home .nex8-about::before{background:var(--home-surface-white)}
.nex8-home .nex8-faq::before{background:var(--home-surface-blue)}
.nex8-home .nex8-section--categories,
.nex8-home .nex8-section--featured,
.nex8-home .nex8-section--portfolio{
  padding:77px 0 79px;
}
.nex8-home .nex8-section--featured,
.nex8-home .nex8-section--portfolio{
  margin-top:0;
}
.nex8-home .nex8-section-top{
  margin-bottom:28px;
  gap:24px;
}
.nex8-home .nex8-section-top h2,
.nex8-home .nex8-process h2,
.nex8-home .nex8-about h2,
.nex8-home .nex8-faq h2{
  color:var(--home-ink);
}
.nex8-home .nex8-section-top p{
  max-width:620px;
}
.nex8-home .nex8-section-top .home-text-link{
  color:#0879a7;
  font-weight:750;
}
.nex8-home .nex8-process{
  margin-top:0;
  padding:76px 30px;
  border-radius:0;
  background:transparent;
  gap:clamp(24px,4.5vw,65px);
}
.nex8-home .nex8-process-step{
  border:1px solid #dfebf2;
  border-radius:15px;
  box-shadow:0 5px 16px #0d2e4410;
}
.nex8-home .nex8-process-step>span{
  color:#087fac;
}
/* HOME-ABOUT-03: institutional story, isolated from other public and admin pages. */
.nex8-home .nex8-about--premium{
  display:grid;
  grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);
  align-items:center;
  gap:clamp(32px,4.8vw,78px);
  padding:82px 0 88px;
}
.nex8-home .nex8-about--premium .nex8-about-visual{
  position:relative;isolation:isolate;display:flex;flex-direction:column;
  justify-content:space-between;min-width:0;min-height:450px;overflow:hidden;
  padding:32px;border:1px solid #246080;border-radius:26px;
  background:radial-gradient(ellipse at 62% 36%,#2076a59c 0%,transparent 47%),
             linear-gradient(145deg,#0b3453,#08263e 55%,#051625);
  box-shadow:0 24px 51px #09253d22;
}
.nex8-home .nex8-about--premium .nex8-about-visual::before{
  content:"";position:absolute;z-index:0;inset:auto -210px -250px auto;
  width:480px;height:480px;border:1px solid #7bcbf74f;border-radius:50%;
  transform:none;pointer-events:none;
}
.nex8-home .nex8-about--premium .nex8-about-visual::after{
  content:"";position:absolute;z-index:0;inset:auto auto -77px -53px;
  width:180px;height:140px;border:0;border-radius:28px;
  background:linear-gradient(145deg,#fb8728,#ea5b0c);
  transform:rotate(-25deg);pointer-events:none;
}
.nex8-home .nex8-about--premium .nex8-about-brand-eyebrow{
  position:relative;z-index:2;align-self:flex-start;padding:8px 11px;
  border:1px solid #75b6d047;border-radius:100px;color:#b5dff1;
  font-size:.67rem;font-weight:750;letter-spacing:.15em;
}
.nex8-home .nex8-about--premium .nex8-about-logo-stage{
  position:relative;z-index:2;display:grid;place-items:center;
  flex:1 1 auto;min-height:190px;padding:20px 0;
}
.nex8-home .nex8-about--premium .nex8-about-logo-stage::before{
  content:"";position:absolute;z-index:-1;width:min(100%,335px);aspect-ratio:1;
  border:1px solid #7dd5ff30;border-radius:50%;
  box-shadow:0 0 0 34px #a8deff08,0 0 0 70px #a8deff05;
}
.nex8-home .nex8-about--premium .nex8-about-logo-stage img{
  display:block;position:relative;z-index:2;width:min(100%,345px);height:auto;
  max-width:100%;max-height:155px;object-fit:contain;
  filter:drop-shadow(0 12px 18px #00132375);
}
.nex8-home .nex8-about--premium .nex8-about-brand-footer{
  position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;
  gap:13px;color:#dae8f2;font-size:.76rem;line-height:1.5;
}
.nex8-home .nex8-about--premium .nex8-about-brand-rule{
  display:block;width:46px;height:3px;border-radius:30px;background:#fa862a;
}
.nex8-home .nex8-about--premium .nex8-about-content{min-width:0}
.nex8-home .nex8-about--premium .nex8-about-content h2{
  max-width:710px;margin:19px 0 0;font-size:clamp(2.3rem,3.5vw,3.85rem);
  line-height:1.07;letter-spacing:-.053em;text-wrap:balance;
}
.nex8-home .nex8-about--premium .nex8-about-lead{
  max-width:610px;margin:23px 0 26px;font-size:clamp(.97rem,1.12vw,1.1rem);
  line-height:1.72;color:#506579;text-wrap:pretty;
}
.nex8-home .nex8-about--premium .nex8-about-pillars{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;
  padding:0;margin:0 0 28px;list-style:none;
}
.nex8-home .nex8-about--premium .nex8-about-pillars li{
  min-width:0;min-height:112px;display:flex;flex-direction:column;align-items:flex-start;
  gap:6px;padding:16px 14px;border:1px solid #dae7ee;border-radius:15px;
  background:linear-gradient(165deg,#fff,#f5f9fc);box-shadow:0 5px 16px #08293e0a;
}
.nex8-home .nex8-about--premium .nex8-about-pillar-number{
  color:#087ba8;font-size:.75rem;font-weight:850;letter-spacing:.04em;
}
.nex8-home .nex8-about--premium .nex8-about-pillars strong{
  color:#142e42;font-size:.88rem;line-height:1.27;
}
.nex8-home .nex8-about--premium .nex8-about-pillars small{
  color:#657b8d;font-size:.74rem;line-height:1.4;
}
.nex8-home .nex8-about--premium .nex8-about-cta{
  display:inline-flex;justify-content:center;align-items:center;gap:26px;
  min-height:50px;padding:12px 23px;border:1px solid #123956;border-radius:13px;
  background:#0a304d;color:#fff;box-shadow:0 9px 22px #092f4b27;
  text-decoration:none;font-size:.9rem;font-weight:770;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}
.nex8-home .nex8-about--premium .nex8-about-cta:hover{
  background:#0c456c;box-shadow:0 13px 24px #092f4b35;transform:translateY(-2px);
}
.nex8-home .nex8-about--premium .nex8-about-cta span{
  color:#ff9b4f;font-size:1.2rem;
}
.nex8-home .nex8-about--premium .nex8-about-cta:focus-visible{
  outline:3px solid #f38b34;outline-offset:4px;
}
@media(max-width:1100px){
  .nex8-home .nex8-about--premium{
    grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:30px;
  }
  .nex8-home .nex8-about--premium .nex8-about-visual{
    min-height:400px;padding:25px;
  }
  .nex8-home .nex8-about--premium .nex8-about-pillars{
    grid-template-columns:1fr;gap:8px;
  }
  .nex8-home .nex8-about--premium .nex8-about-pillars li{
    display:grid;grid-template-columns:25px 1fr;gap:2px 10px;min-height:0;padding:11px 13px;
  }
  .nex8-home .nex8-about--premium .nex8-about-pillar-number{
    grid-column:1;grid-row:1/3;align-self:center;
  }
}
@media(max-width:900px){
  .nex8-home .nex8-about--premium{
    grid-template-columns:minmax(0,1fr);gap:30px;padding:58px 0;
  }
  .nex8-home .nex8-about--premium .nex8-about-content{order:0}
  .nex8-home .nex8-about--premium .nex8-about-visual{
    order:1;min-height:260px;padding:25px;
  }
  .nex8-home .nex8-about--premium .nex8-about-logo-stage{
    min-height:105px;padding:14px 0;
  }
  .nex8-home .nex8-about--premium .nex8-about-logo-stage img{max-height:120px}
  .nex8-home .nex8-about--premium .nex8-about-pillars{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .nex8-home .nex8-about--premium .nex8-about-pillars li{
    display:flex;gap:6px;min-height:108px;padding:15px;
  }
}
@media(max-width:680px){
  .nex8-home .nex8-about--premium{padding:45px 0 50px;gap:25px}
  .nex8-home .nex8-about--premium .nex8-about-content h2{
    font-size:clamp(1.9rem,7.7vw,2.6rem);line-height:1.1;margin-top:13px;
  }
  .nex8-home .nex8-about--premium .nex8-about-lead{
    margin:16px 0 19px;line-height:1.6;font-size:.95rem;
  }
  .nex8-home .nex8-about--premium .nex8-about-pillars{
    grid-template-columns:1fr;gap:8px;margin-bottom:22px;
  }
  .nex8-home .nex8-about--premium .nex8-about-pillars li{
    display:grid;grid-template-columns:25px 1fr;gap:2px 10px;min-height:0;padding:12px 14px;
  }
  .nex8-home .nex8-about--premium .nex8-about-cta{width:100%;min-height:49px}
  .nex8-home .nex8-about--premium .nex8-about-visual{
    min-height:230px;padding:21px;border-radius:19px;
  }
  .nex8-home .nex8-about--premium .nex8-about-brand-eyebrow{font-size:.59rem}
  .nex8-home .nex8-about--premium .nex8-about-brand-footer{font-size:.7rem;gap:9px}
  .nex8-home .nex8-about--premium .nex8-about-logo-stage img{max-height:90px}
}
@media(prefers-reduced-motion:reduce){
  .nex8-home .nex8-about--premium .nex8-about-cta{transition:none}
}

.nex8-home .nex8-faq{
  padding:80px 0;
}
.nex8-home .nex8-faq summary:after{
  color:#087fac;
}
.nex8-home .nex8-final-cta{
  margin-top:72px;
  margin-bottom:76px;
}

/* Desktop: four equally weighted cards across, like a compact product gallery.
   Keep existing horizontal two-column cards on tablet and mobile. */
@media(min-width:1200px){
  .nex8-home .nex8-category-grid--premium{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:15px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual,
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2),
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(120px,1fr) auto minmax(67px,auto) auto;
    gap:0;
    min-height:388px;
    padding:22px 21px 24px;
    border-radius:21px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-number{
    grid-column:1;grid-row:1;
    justify-self:start;
    font-size:.61rem;
    letter-spacing:.078em;
    padding-right:32px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-arrow{
    grid-column:1;grid-row:1;
    justify-self:end;
    width:34px;height:34px;
    margin:-8px -7px 0 0;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-photo,
  .nex8-home .nex8-category-grid--premium .nex8-category-photo--custom{
    grid-column:1;grid-row:2;
    justify-self:center;
    align-self:center;
    margin:0;
    width:min(100%,225px);
    max-width:100%;
    max-height:190px;
    aspect-ratio:1/1;
    transform:none;
    filter:drop-shadow(0 13px 17px #0007);
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual h3{
    grid-column:1;grid-row:3;
    margin:0 0 7px;
    font-size:clamp(1.22rem,1.65vw,1.67rem);
    line-height:1.18;
    letter-spacing:-.036em;
    min-height:2.34em;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual p{
    grid-column:1;grid-row:4;
    font-size:.77rem;
    line-height:1.43;
    margin:0;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category-cta{
    grid-column:1;grid-row:5;
    margin-top:14px;
    padding:9px 12px;
    font-size:.76rem;
  }
  /* Photos uploaded in Admin must keep their full product visible. */
  .nex8-home .nex8-category-grid--premium img.nex8-category-photo--custom{
    object-fit:contain;
    object-position:center;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:hover .nex8-category-photo{
    transform:translateY(-3px) scale(1.035);
  }
}
@media(min-width:1200px) and (max-width:1320px){
  .nex8-home .nex8-category-grid--premium .nex8-category--visual,
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(2),
  .nex8-home .nex8-category-grid--premium .nex8-category--visual:nth-child(4){
    padding:19px 17px 21px;
  }
  .nex8-home .nex8-category-grid--premium .nex8-category--visual h3{
    font-size:1.23rem;
  }
}

/* Service carousel: switch beige / copper gradients to restrained blue-grey.
   Orange is a call-to-action and progress accent, not a whole slide theme. */
.nex8-home .nex8-services-carousel--premium{
  --nex8-premium-orange:#f27623;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-viewport{
  background:#f8fbfd;
  border:1px solid #d7e4ec;
  box-shadow:0 18px 48px #09253d13;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-card{
  border-color:#d9e7ee;
  background:linear-gradient(110deg,#fff 0%,#f8fbfd 52%,#dce8ef 100%);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info{
  background:linear-gradient(110deg,#ffffff 0%,#f9fcfef0 80%,#f6fafcd9 100%);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-kicker{
  color:#486376;
  letter-spacing:.19em;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-kicker:before{
  background:#1388b4;
  height:3px;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info h3 em{
  color:#117eab;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-info p{
  color:#586c7b;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefit-icon{
  color:#1687b4;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-media{
  background:
    radial-gradient(ellipse at 51% 45%,#ffffffa8 0%,transparent 53%),
    radial-gradient(ellipse at 78% 12%,#87bfdd4a 0%,transparent 39%),
    linear-gradient(135deg,#d9e6ed 0%,#7999ad 59%,#173b56 100%);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-media:before{
  background:radial-gradient(ellipse at 79% 93%,#061a2a60 0%,transparent 54%);
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-more{
  background:linear-gradient(115deg,#f57a22,#e66a16);
  box-shadow:0 10px 20px #dd650d26;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-card:hover .nex8-featured-more{
  box-shadow:0 14px 25px #dd650d37;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-icon,
.nex8-home .nex8-services-carousel--premium .nex8-services-pause{
  box-shadow:none;
  border-color:#cbdce6;
  background:#fff;
  color:#17364d;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-dot.is-active:before{
  background:#0e86b4;
}
/* Match the Portfolio timeline: controls above, full-width 4px track below.
   Keep service dots/buttons and the existing 6s JS behavior unchanged. */
.nex8-home .nex8-services-carousel--premium .nex8-services-controls{
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:12px;
  row-gap:8px;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-steps{
  grid-column:1;
  grid-row:1;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-buttons{
  grid-column:2;
  grid-row:1;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-progress{
  grid-column:1/-1;
  grid-row:2;
  min-width:0;
  width:100%;
  height:4px;
  margin:4px 0 0;
  border-radius:50px;
  overflow:hidden;
  background:#d6e2ea;
}
.nex8-home .nex8-services-carousel--premium .nex8-services-progress-fill{
  display:block;
  width:100%;
  height:100%;
  border-radius:50px;
  background:linear-gradient(90deg,#ed6510,#ff9a24);
  box-shadow:none;
  transform-origin:left center;
}
@media(max-width:900px){
  .nex8-home .nex8-section--categories,
  .nex8-home .nex8-section--featured,
  .nex8-home .nex8-section--portfolio{
    padding:58px 0 62px;
  }
  .nex8-home .nex8-process{padding:60px 12px}
  .nex8-home .nex8-about:not(.nex8-about--premium){padding:60px 0}
  .nex8-home .nex8-faq{padding:60px 0}
  .nex8-home .nex8-final-cta{margin-top:60px;margin-bottom:62px}
}
@media(max-width:680px){
  .nex8-home .nex8-section--categories,
  .nex8-home .nex8-section--featured,
  .nex8-home .nex8-section--portfolio{
    padding:48px 0 51px;
  }
  .nex8-home .nex8-process{
    padding:50px 0;
    gap:22px;
  }
  .nex8-home .nex8-process-step{padding:18px}
  .nex8-home .nex8-about:not(.nex8-about--premium){padding:51px 0}
  .nex8-home .nex8-faq{padding:50px 0}
  .nex8-home .nex8-final-cta{
    margin-top:55px;
    margin-bottom:55px;
  }
  .nex8-home .nex8-section-top{gap:12px;margin-bottom:20px}
  .nex8-home .nex8-services-carousel--premium .nex8-featured-media{
    background:
      radial-gradient(ellipse at 58% 47%,#ffffff9b 0%,transparent 55%),
      linear-gradient(145deg,#d9e7ef,#7899ad 69%,#1b405a);
  }
}
@media(prefers-reduced-motion:reduce){
  .nex8-home .nex8-category-grid--premium .nex8-category--visual{
    transition:none;
  }
}

/* CAROUSEL-MOBILE-20261031: benefit icons remain in one proportional row,
   and carousel dots never share a row with navigation actions on phones. */
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefits{
  grid-template-columns:repeat(var(--nex8-benefit-count,5),minmax(0,1fr));
  width:100%;
  min-width:0;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefits[data-nex8-benefit-count="1"]{
  --nex8-benefit-count:1;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefits[data-nex8-benefit-count="2"]{
  --nex8-benefit-count:2;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefits[data-nex8-benefit-count="3"]{
  --nex8-benefit-count:3;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefits[data-nex8-benefit-count="4"]{
  --nex8-benefit-count:4;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefits[data-nex8-benefit-count="5"]{
  --nex8-benefit-count:5;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefit{
  min-width:0;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  overflow-wrap:anywhere;
}
.nex8-home .nex8-services-carousel--premium .nex8-featured-benefit>span:last-child{
  min-width:0;
  max-width:100%;
  hyphens:auto;
  overflow-wrap:anywhere;
}
@media(max-width:900px){
  .nex8-home .nex8-services-carousel--premium .nex8-services-controls{
    display:none;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
    gap:10px;
    margin:15px 0 0;
    min-width:0;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-services-steps{
    grid-column:1;
    grid-row:1;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:2px;
    width:100%;
    min-width:0;
    max-width:100%;
    overflow-x:auto;
    scrollbar-width:none;
    flex-wrap:nowrap;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-services-steps::-webkit-scrollbar{display:none}
  .nex8-home .nex8-services-carousel--premium .nex8-services-dot{
    flex:0 0 25px;
    min-width:25px;
    min-height:34px;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-services-buttons{
    grid-column:1;
    grid-row:2;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);
    align-items:stretch;
    justify-self:stretch;
    width:100%;
    min-width:0;
    gap:9px;
    /* Leave room for the fixed WhatsApp bubble at the right edge. */
    padding-right:64px;
    box-sizing:border-box;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-services-icon,
  .nex8-home .nex8-services-carousel--premium .nex8-services-pause{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:46px;
    padding:0 7px;
    white-space:nowrap;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-services-progress{
    grid-column:1;
    grid-row:3;
    margin:3px 0 0;
    height:4px;
    min-width:0;
  }
}
@media(max-width:680px){
  .nex8-home .nex8-services-carousel--premium .nex8-featured-benefits{
    grid-template-columns:repeat(var(--nex8-benefit-count,5),minmax(0,1fr));
    align-items:start;
    gap:clamp(3px,1vw,7px);
    margin:19px 0 0;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-featured-benefit{
    gap:6px;
    font-size:clamp(.64rem,2.4vw,.76rem);
    line-height:1.21;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-featured-benefit-icon{
    width:clamp(23px,6vw,29px);
    height:clamp(23px,6vw,29px);
    min-width:0;
    font-size:1.6rem;
    flex:none;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-benefit-icon-svg,
  .nex8-home .nex8-services-carousel--premium .nex8-benefit-icon-image{
    width:100%;
    height:100%;
    max-width:100%;
    object-fit:contain;
  }
}
@media(max-width:370px){
  .nex8-home .nex8-services-carousel--premium .nex8-featured-benefit{
    font-size:.625rem;
    line-height:1.18;
  }
  .nex8-home .nex8-services-carousel--premium .nex8-services-buttons{gap:7px}
}
