/* ═══════════════════════════════════════════════
   NEXIVO — index.html Styles
   ═══════════════════════════════════════════════ */

section{padding:7rem 6vw}

/* ─── Hero Slideshow ─────────────────────────── */
#hero{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
}
.slide{
  position:absolute;inset:0;
  opacity:0;transition:opacity 1.4s ease;
  z-index:1;
}
.slide.active{opacity:1;z-index:2}
.slide img{
  width:100%;height:100%;
  object-fit:cover;object-position:center center;
  display:block;position:absolute;inset:0;
}
/* wall_tablet.png is portrait — show the full image using contain.
   A blurred copy of the same image fills the empty sides so there are no black bars. */
.slide--portrait::before{
  content:'';
  position:absolute;inset:-6%;
  z-index:0;
  background:url('../images/wall_tablet.png') center 20% / cover no-repeat;
  filter:blur(22px) brightness(.7);
}
.slide--portrait img{
  object-fit:contain;
  object-position:center center;
  position:absolute;inset:0;
  z-index:1;
}
/* On narrow portrait viewports (aspect-ratio:3/4) the container matches the image
   ratio — cover fills it perfectly with no cropping needed. */
@media(max-width:520px){
  .slide--portrait::before{display:none}
  .slide--portrait img{object-fit:cover;object-position:center center}
}
.slide::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(to bottom,
    rgba(13,13,26,.55) 0%,
    rgba(13,13,26,.4)  35%,
    rgba(13,13,26,.82) 70%,
    rgba(13,13,26,.97) 100%);
}

.hero-body{
  position:absolute;bottom:0;left:0;right:0;
  z-index:10;
  padding:0 6vw 6rem;
}
.hero-tag{
  display:inline-flex;align-items:center;gap:.8rem;
  font-size:.62rem;font-weight:400;letter-spacing:.35em;text-transform:uppercase;
  color:var(--gold2);margin-bottom:1.4rem;
  text-shadow:0 1px 6px rgba(0,0,0,.6);
}
.hero-tag::before{content:'';width:28px;height:1px;background:var(--gg)}

h1.hero-h{
  font-family:'Cormorant',serif;
  font-size:clamp(2.8rem,6.5vw,6rem);
  font-weight:400;line-height:1.08;
  color:var(--white);
  max-width:820px;
  margin-bottom:1.6rem;
  text-shadow:0 2px 16px rgba(0,0,0,.65),0 1px 4px rgba(0,0,0,.5);
}
h1.hero-h em{
  font-style:italic;font-weight:400;
  background:var(--gg);-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.hero-sub{
  font-size:1rem;font-weight:300;line-height:1.7;
  color:rgba(255,255,255,.92);
  max-width:540px;margin-bottom:2.2rem;
  text-shadow:0 1px 8px rgba(0,0,0,.7);
}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}

.slide-counter{
  position:absolute;right:3vw;bottom:50%;transform:translateY(50%);
  z-index:10;display:flex;flex-direction:column;align-items:center;gap:.6rem;
}
.slide-dot{
  width:2px;height:20px;background:rgba(255,255,255,.2);
  cursor:pointer;transition:background .3s,height .3s;border:none;padding:0;
}
.slide-dot.active{background:var(--gold2);height:34px}
.slide-progress{display:none}

/* ─── Why Nexivo ──────────────────────────────── */
#why{
  background:var(--navy2);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:7rem 6vw;
}
.why-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:5rem;align-items:center;
}
.why-body p{
  font-size:.95rem;font-weight:300;line-height:1.85;
  color:var(--dim);margin-top:1rem;max-width:460px;
}
.pillars{display:flex;flex-direction:column;gap:.9rem;margin-top:2.2rem}
.pillar{
  display:flex;align-items:flex-start;gap:1rem;
  padding:1rem 1.2rem;
  background:var(--surface);
  border:1px solid var(--border);
  transition:border-color .25s,background .25s;
}
.pillar:hover{border-color:var(--border2);background:rgba(201,169,97,.04)}
.p-ico{
  width:36px;height:36px;flex-shrink:0;
  border:1px solid var(--gold4);
  display:grid;place-items:center;
  background:rgba(201,169,97,.05);
  color:var(--gold2);
}
.p-text strong{display:block;font-size:.82rem;font-weight:500;color:var(--gold1);margin-bottom:.18rem}
.p-text span{font-size:.82rem;font-weight:300;color:var(--dim);line-height:1.6}

.stats-card{
  background:rgba(15,52,96,.2);
  border:1px solid var(--border);
  overflow:hidden;position:relative;
}
.stats-card::before{content:'';position:absolute;top:0;left:0;right:0;height:1.5px;background:var(--gg)}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border)}
.stat-cell{background:var(--navy2);padding:1.6rem 1.2rem;text-align:center}
.stat-val{
  font-family:'Cormorant',serif;
  font-size:2.2rem;font-weight:400;line-height:1;
  background:var(--gg);-webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.stat-lbl{font-size:.62rem;font-weight:400;letter-spacing:.12em;text-transform:uppercase;color:var(--dimmer);margin-top:.35rem}
.ai-row{
  display:flex;align-items:center;gap:.8rem;
  padding:.95rem 1.2rem;
  background:rgba(201,169,97,.05);
  border-top:1px solid var(--border);
}
.ai-pulse{
  width:7px;height:7px;border-radius:50%;flex-shrink:0;
  background:var(--gold2);
  animation:pulse 2.2s ease-in-out infinite;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(201,169,97,.5)}50%{box-shadow:0 0 0 7px rgba(201,169,97,0)}}
.ai-text{font-size:.8rem;font-weight:300;color:var(--offwhite);line-height:1.4}
.ai-text strong{color:var(--gold1);font-weight:500}

/* ─── Packages ────────────────────────────────── */
#packages{background:var(--navy);padding:7rem 6vw}
.pkg-intro{max-width:560px;margin-bottom:3.5rem}
.pkg-intro p{font-size:.92rem;font-weight:300;color:var(--dim);line-height:1.8;margin-top:.6rem}
.pkg-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}

.pkg-card{
  position:relative;overflow:hidden;
  border:1px solid var(--border);
  background:linear-gradient(145deg,rgba(22,33,62,.6) 0%,rgba(13,13,26,.9) 100%);
  transition:transform .3s,border-color .3s;
}
.pkg-card:hover{transform:translateY(-5px);border-color:var(--border2)}
.pkg-img{height:220px;overflow:hidden;position:relative}
.pkg-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.pkg-card:hover .pkg-img img{transform:scale(1.04)}
.pkg-img::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to bottom,transparent 40%,rgba(13,13,26,.85) 100%);
}
.pkg-body{padding:1.8rem 2rem 2rem}
.pkg-badge{font-size:.58rem;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:var(--gold2);margin-bottom:.4rem}
.pkg-title{
  font-family:'Cormorant',serif;
  font-size:1.65rem;font-weight:400;color:var(--white);
  margin-bottom:.8rem;line-height:1.15;
}
.pkg-desc{font-size:.88rem;font-weight:300;line-height:1.75;color:var(--dim);margin-bottom:1.4rem}
.feat-list{list-style:none;display:flex;flex-direction:column;gap:.55rem;margin-bottom:1.6rem}
.feat-list li{
  display:flex;align-items:flex-start;gap:.7rem;
  font-size:.84rem;font-weight:300;color:var(--dim);line-height:1.5;
}
.feat-list li::before{content:'';width:12px;height:1px;flex-shrink:0;background:var(--gg);margin-top:.55em}
.pkg-link{
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.7rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gold2);
  border-bottom:1px solid rgba(201,169,97,.3);padding-bottom:2px;
  transition:color .25s,border-color .25s;
}
.pkg-link:hover{color:var(--gold1);border-color:var(--gold1)}
.pkg-link svg{transition:transform .25s}
.pkg-link:hover svg{transform:translateX(4px)}

/* ─── Process ─────────────────────────────────── */
#process{
  background:var(--navy2);
  border-top:1px solid var(--border);
  padding:7rem 6vw;
}
.proc-top{
  display:grid;grid-template-columns:1fr 1fr;
  gap:4rem;align-items:end;margin-bottom:5rem;
}
.proc-note{font-size:.92rem;font-weight:300;line-height:1.82;color:var(--dim)}
.proc-badge{
  display:flex;align-items:center;gap:1rem;
  margin-top:1.6rem;padding:1rem 1.3rem;
  border-left:2px solid var(--gold2);
  background:rgba(201,169,97,.04);
}
.proc-badge strong{
  font-family:'Cormorant',serif;font-size:2rem;font-weight:400;
  background:var(--gg);-webkit-background-clip:text;-webkit-text-fill-color:transparent;
  white-space:nowrap;
}
.proc-badge span{font-size:.8rem;font-weight:300;color:var(--dim);line-height:1.5}

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;position:relative}
.steps::before{
  content:'';position:absolute;
  top:24px;left:calc(12.5% + 10px);right:calc(12.5% + 10px);
  height:1px;background:linear-gradient(90deg,var(--gold3),rgba(201,169,97,.1));
  z-index:0;
}
.step{padding:0 1.2rem;position:relative;z-index:1}
.step-n{
  width:48px;height:48px;margin-bottom:1.3rem;
  border:1px solid var(--gold3);background:var(--navy2);
  display:grid;place-items:center;
}
.step-n span{
  font-family:'Cormorant',serif;font-size:1.05rem;font-weight:400;
  background:var(--gg);-webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.step-title{font-size:.72rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--gold1);margin-bottom:.5rem}
.step-desc{font-size:.84rem;font-weight:300;line-height:1.72;color:var(--dim)}

/* ─── Trust Bar ───────────────────────────────── */
#trust{
  background:var(--navy);
  border-top:1px solid var(--border);
  padding:3rem 6vw;
}
.trust-row{
  display:flex;align-items:center;justify-content:center;
  gap:2rem;flex-wrap:wrap;
}
.t-item{
  font-size:.68rem;font-weight:400;letter-spacing:.12em;text-transform:uppercase;
  color:var(--dimmer);display:flex;align-items:center;gap:.6rem;white-space:nowrap;
}
.t-item::before{content:'';width:16px;height:1px;background:var(--gg);flex-shrink:0}
.t-sep{width:1px;height:20px;background:var(--border);flex-shrink:0}

/* ─── Responsive ──────────────────────────────── */
@media(max-width:900px){
  section,#why,#packages,#process,#cta{padding:5rem 1.5rem}
  #trust{padding:2.5rem 1.5rem}

  .hero-body{padding:0 1.5rem 3rem}
  h1.hero-h{font-size:clamp(2.2rem,8vw,3.6rem)}
  .hero-sub{font-size:.92rem}

  #hero{height:auto;aspect-ratio:4/3;position:relative}
  .slide{position:absolute;inset:0}

  .why-grid{grid-template-columns:1fr;gap:2.5rem}
  .why-body p{max-width:100%}

  .pkg-grid{grid-template-columns:1fr}

  .proc-top{grid-template-columns:1fr;gap:2rem;margin-bottom:3rem}
  .steps{grid-template-columns:1fr 1fr;gap:2.5rem}
  .steps::before{display:none}
  .step{padding:0}

  .trust-row{gap:1rem}
  .t-sep{display:none}
  .t-item{font-size:.65rem}
}

@media(max-width:520px){
  .steps{grid-template-columns:1fr}
  .hero-actions{flex-direction:column;align-items:flex-start}
  .btn-gold,.btn-ghost{width:100%;justify-content:center}
  .slide-counter{right:1rem}
  .stats-grid{grid-template-columns:1fr 1fr}
  .pkg-img{height:180px}
  #hero{aspect-ratio:3/4}
  .hero-body{padding:0 1.2rem 2.5rem}
}
