/* ==========================================================================
   Homepage hero slider — Master Vijay Ram
   Component styles only. Loaded after the site theme.
   ========================================================================== */

.hero{
  --hero-h-desktop: clamp(560px, 44vw, 700px);
  --hero-h-mobile:  clamp(520px, 128vw, 650px);
  --hero-max:       1320px;
  --hero-cta:       linear-gradient(100deg,#E7192D 0%,#FF6A00 100%);
  --hero-cta-hover: linear-gradient(100deg,#FF2438 0%,#FF7C1A 100%);
  --hero-ink:       #FFFFFF;
  --hero-dim:       rgba(255,255,255,.86);

  position:relative;
  width:100%;
  height:var(--hero-h-desktop);
  overflow:hidden;
  background:#0F1330;                 /* paint before art loads: no white flash */
  isolation:isolate;
  /* the theme applies generous padding to every <section>; the hero is full-bleed */
  padding:0 !important;
  margin:0;
}

/* ---------- slides ---------- */
.hero__viewport{position:absolute;inset:0;}

.hero__slide{
  position:absolute;inset:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .75s ease, visibility 0s linear .75s;
  will-change:opacity;
}
.hero__slide.is-active{
  opacity:1;
  visibility:visible;
  transition:opacity .75s ease, visibility 0s;
  z-index:1;
}

.hero__media{position:absolute;inset:0;display:block;}
.hero__media img{
  width:100%;height:100%;
  object-fit:cover;object-position:center 38%;
  display:block;
  transform:scale(1.02);
  transition:transform 1.2s ease;
}
.hero__slide.is-active .hero__media img{transform:scale(1);}

/* directional scrim — only on slides that carry overlaid copy */
.hero__scrim{
  position:absolute;inset:0;
  background:
    radial-gradient(120% 90% at 50% 50%,transparent 42%,rgba(6,9,26,.42) 100%),
    linear-gradient(90deg,rgba(6,9,26,.84) 0%,rgba(6,9,26,.58) 38%,rgba(6,9,26,.14) 72%,rgba(6,9,26,0) 100%);
}
.hero__slide--right .hero__scrim{
  background:
    radial-gradient(120% 90% at 50% 50%,transparent 42%,rgba(6,9,26,.42) 100%),
    linear-gradient(270deg,rgba(6,9,26,.84) 0%,rgba(6,9,26,.58) 38%,rgba(6,9,26,.14) 72%,rgba(6,9,26,0) 100%);
}
.hero__slide--center .hero__scrim{
  background:linear-gradient(180deg,rgba(6,9,26,.30) 0%,rgba(6,9,26,.62) 55%,rgba(6,9,26,.78) 100%);
}
.hero__slide--bare .hero__scrim{display:none;}

/* ---------- copy ---------- */
.hero__inner{
  position:relative;z-index:2;
  height:100%;
  max-width:var(--hero-max);
  margin-inline:auto;
  padding-inline:clamp(1.25rem,4vw,3rem);
  display:flex;align-items:center;
}
.hero__slide--right  .hero__inner{justify-content:flex-end;}
.hero__slide--center .hero__inner{justify-content:center;}

.hero__content{max-width:640px;}
.hero__slide--center .hero__content{max-width:760px;text-align:center;}
.hero__slide--right  .hero__content{text-align:left;}

.hero__eyebrow{
  margin:0 0 .75rem;
  color:#F5C86A;
  font-family:"Poppins",system-ui,sans-serif;
  font-size:clamp(.8125rem,1.1vw,1.0625rem);
  font-weight:600;letter-spacing:.18em;text-transform:uppercase;
}
.hero__title{
  margin:0 0 1rem;
  color:var(--hero-ink);
  font-family:"Poppins",system-ui,sans-serif;
  font-size:clamp(2.25rem,5vw,5.25rem);
  line-height:1.04;
  font-weight:700;
  letter-spacing:-.02em;
  text-wrap:balance;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}
.hero__subtitle{
  margin:0 0 1.75rem;
  color:var(--hero-dim);
  font-size:clamp(1rem,1.35vw,1.375rem);
  line-height:1.65;
  max-width:52ch;
}
.hero__slide--center .hero__subtitle{margin-inline:auto;}

/* ---------- CTAs ---------- */
.hero__actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;}
.hero__slide--center .hero__actions{justify-content:center;}

.hero__cta{
  display:inline-flex;align-items:baseline;gap:.6rem;
  min-height:52px;
  padding:.9rem 1.9rem;
  border-radius:999px;
  background:var(--hero-cta);
  color:#fff !important;
  font-family:"Poppins",system-ui,sans-serif;
  font-size:1rem;font-weight:600;letter-spacing:.01em;
  text-decoration:none;
  box-shadow:0 10px 30px rgba(231,25,45,.34);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.hero__cta:hover,.hero__cta:focus-visible{
  background:var(--hero-cta-hover);
  color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 16px 40px rgba(231,25,45,.44);
}
.hero__cta-phone{font-weight:700;white-space:nowrap;}
.hero__cta--ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:none;
}
.hero__cta--ghost:hover,.hero__cta--ghost:focus-visible{
  background:rgba(255,255,255,.12);
  border-color:#fff;box-shadow:none;
}

/* ---------- arrows ---------- */
.hero__arrow{
  position:absolute;top:50%;translate:0 -50%;
  z-index:4;
  width:58px;height:58px;
  display:grid;place-items:center;
  border-radius:50%;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.65);
  color:#fff;
  font-size:2rem;line-height:1;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
}
.hero__arrow span{margin-top:-4px;}
.hero__arrow:hover{background:rgba(0,0,0,.48);border-color:#fff;}
.hero__arrow:focus-visible{outline:3px solid #F5C86A;outline-offset:3px;}
.hero__arrow--prev{left:clamp(12px,2.4vw,50px);}
.hero__arrow--next{right:clamp(12px,2.4vw,50px);}

/* ==========================================================================
   Control bar: counter · progress dots · pause toggle
   ========================================================================== */
.hero__controls{
  position:absolute;left:50%;translate:-50% 0;bottom:26px;
  z-index:4;
  display:flex;align-items:center;gap:1.15rem;
  padding:.5rem .9rem;
  border-radius:999px;
  background:rgba(6,9,26,.34);
  border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}

.hero__counter{
  margin:0;display:flex;align-items:center;gap:.45rem;
  font-family:"Poppins",system-ui,sans-serif;
  font-size:.75rem;font-weight:600;letter-spacing:.1em;
  color:rgba(255,255,255,.75);
  font-variant-numeric:tabular-nums;
}
.hero__counter-now{color:#F5C86A;}
.hero__counter-rule{width:16px;height:1px;background:rgba(255,255,255,.4);display:inline-block;}

.hero__dots{display:flex;gap:.5rem;align-items:center;}
.hero__dot{
  position:relative;
  width:24px;height:3px;padding:0;
  border:0;border-radius:999px;
  background:rgba(255,255,255,.30);
  cursor:pointer;overflow:hidden;
  transition:background .3s ease;
}
.hero__dot:hover{background:rgba(255,255,255,.55);}
.hero__dot:focus-visible{outline:3px solid #F5C86A;outline-offset:4px;}
.hero__dot-fill{
  position:absolute;inset:0;
  transform-origin:left center;transform:scaleX(0);
  background:linear-gradient(90deg,#F5C86A,#FF8A2B);
  border-radius:inherit;
}
/* the active dot fills over exactly one autoplay interval */
.hero__dot.is-active .hero__dot-fill{
  animation:heroDotFill var(--hero-dur,6000ms) linear forwards;
}
.hero .hero__dot.is-active .hero__dot-fill{animation-play-state:running;}
.hero.is-paused .hero__dot.is-active .hero__dot-fill{animation-play-state:paused;}
/* autoplay off entirely: show a solid active dot, no timing bar */
.hero.is-static .hero__dot.is-active .hero__dot-fill{animation:none;transform:scaleX(1);}
@keyframes heroDotFill{from{transform:scaleX(0);}to{transform:scaleX(1);}}

.hero__toggle{
  width:26px;height:26px;padding:0;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  background:transparent;color:#fff;cursor:pointer;
  transition:background .18s ease,border-color .18s ease;
}
.hero__toggle:hover{background:rgba(255,255,255,.16);border-color:#fff;}
.hero__toggle:focus-visible{outline:3px solid #F5C86A;outline-offset:3px;}
/* pause glyph (two bars) drawn in CSS so there is no icon-font dependency */
.hero__toggle-icon{
  width:8px;height:9px;
  border-left:2.5px solid currentColor;
  border-right:2.5px solid currentColor;
}
/* play glyph (triangle) when rotation is stopped */
.hero__toggle[aria-pressed="true"] .hero__toggle-icon{
  width:0;height:0;margin-left:2px;
  border:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:8px solid currentColor;
}

/* ==========================================================================
   Staggered copy entrance — the single biggest lift in perceived quality
   ========================================================================== */
@keyframes heroRise{
  from{opacity:0;transform:translate3d(0,22px,0);}
  to  {opacity:1;transform:none;}
}
.hero__slide .hero__eyebrow,
.hero__slide .hero__title,
.hero__slide .hero__subtitle,
.hero__slide .hero__actions{opacity:0;}
.hero__slide.is-active .hero__eyebrow {animation:heroRise .65s cubic-bezier(.22,.8,.30,1) .10s both;}
.hero__slide.is-active .hero__title   {animation:heroRise .70s cubic-bezier(.22,.8,.30,1) .20s both;}
.hero__slide.is-active .hero__subtitle{animation:heroRise .70s cubic-bezier(.22,.8,.30,1) .32s both;}
.hero__slide.is-active .hero__actions {animation:heroRise .70s cubic-bezier(.22,.8,.30,1) .44s both;}

/* screen-reader-only live region */
.hero__status{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ---------- tablet ---------- */
@media (max-width:1024px){
  .hero__content{max-width:560px;}
  .hero__arrow{width:50px;height:50px;font-size:1.75rem;}
}

/* ---------- mobile ---------- */
@media (max-width:767px){
  .hero{height:var(--hero-h-mobile);}
  .hero__media img{object-position:center 32%;}
  .hero__scrim,
  .hero__slide--right .hero__scrim,
  .hero__slide--center .hero__scrim{
    background:linear-gradient(180deg,rgba(6,9,26,.35) 0%,rgba(6,9,26,.62) 48%,rgba(6,9,26,.86) 100%);
  }
  .hero__inner{align-items:flex-end;padding-bottom:5.25rem;}
  .hero__slide--right .hero__inner,
  .hero__slide--center .hero__inner{justify-content:flex-start;}
  .hero__content,
  .hero__slide--center .hero__content{max-width:none;text-align:left;}
  .hero__slide--center .hero__subtitle{margin-inline:0;}
  .hero__slide--center .hero__actions{justify-content:flex-start;}
  .hero__title{font-size:clamp(2rem,8.5vw,3.25rem);}
  .hero__subtitle{font-size:1rem;margin-bottom:1.25rem;}
  .hero__cta{width:auto;min-height:48px;padding:.8rem 1.4rem;font-size:.9375rem;}
  .hero__arrow{width:44px;height:44px;font-size:1.5rem;}
  .hero__controls{bottom:20px;gap:.75rem;padding:.45rem .7rem;}
  .hero__counter{display:none;}          /* space is tight; dots already show position */
  .hero__dot{width:24px;height:4px;}
  .hero__toggle{width:24px;height:24px;}
}

@media (max-width:360px){
  .hero__eyebrow{font-size:.6875rem;letter-spacing:.14em;}
  .hero__title{font-size:1.75rem;}
  .hero__cta{padding:.75rem 1.1rem;font-size:.875rem;}
  .hero__cta--ghost{display:none;}       /* one clear action on the smallest screens */
}


/* ---------- defensive: 320–500px cannot be rendered by headless Chrome,
     so these rules guarantee the copy can never force a horizontal scroll ---------- */
.hero__content{max-width:100%;min-width:0;}
.hero__title,.hero__subtitle,.hero__eyebrow{overflow-wrap:break-word;}
.hero__actions{max-width:100%;}
.hero__cta{max-width:100%;flex-wrap:wrap;justify-content:center;text-align:center;}
.hero__cta-phone{white-space:nowrap;}

/* ---------- very large displays: cinematic, not overwhelming ---------- */
@media (min-width:1800px){
  .hero{height:clamp(640px,38vw,760px);}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .hero__slide{transition:opacity .01ms;}
  .hero__media img{transform:none;transition:none;}
  .hero__cta,.hero__arrow,.hero__dot{transition:none;}
  /* no rise-in, no timing bar — copy is simply present */
  .hero__slide .hero__eyebrow,
  .hero__slide .hero__title,
  .hero__slide .hero__subtitle,
  .hero__slide .hero__actions{opacity:1;}
  .hero__slide.is-active .hero__eyebrow,
  .hero__slide.is-active .hero__title,
  .hero__slide.is-active .hero__subtitle,
  .hero__slide.is-active .hero__actions{animation:none;}
  .hero__dot.is-active .hero__dot-fill{animation:none;transform:scaleX(1);}
}

/* JS disabled: nothing can animate the copy in, so make sure it is visible */
.no-js .hero__slide .hero__eyebrow,
.no-js .hero__slide .hero__title,
.no-js .hero__slide .hero__subtitle,
.no-js .hero__slide .hero__actions{opacity:1;animation:none;}
