/* ================== HERO.CSS (FULL UPDATED – FULLY RESPONSIVE) ================== */

/* ============ ACCESSIBILITY HELPERS ============ */
.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ============ HERO BASE ============ */
.hero2{
  --bg:#ffffff;
  --text:#101010;
  --muted:#505050;
  --line:#e9e9e9;
  --green:#bdf5b3;
  --green2:#a8f29c;

  background:var(--bg);
  color:var(--text);
  padding:clamp(18px, 3vw, 26px) 0 clamp(26px, 4vw, 34px);
  overflow:hidden;
}

.hero2-shell{
  width:min(1240px, 92vw);
  margin:0 auto;
}

/* ================= GRID ================= */
.hero2-grid{
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  align-items:center;
  gap:clamp(18px, 3vw, 36px);
  min-height:680px;
}

/* ================= LEFT ================= */
.hero2-left{
  min-width:0;
  padding-top:0;
  margin-top:-10px;
  animation:fadeUp .8s ease both;
}

.hero2-title{
  font-size:clamp(36px, 4.6vw, 68px);
  line-height:1.08;
  letter-spacing:-1px;
  margin:0 0 18px;
  font-weight:950;
  overflow-wrap:anywhere;
  word-break:normal;
  max-width:12ch;
}

.hero2-sub{
  max-width:60ch;
  font-size:18px;
  line-height:1.8;
  color:var(--muted);
  margin:0 0 26px;
  overflow-wrap:break-word;
}

/* CTA */
.hero2-cta{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:46px;
}

.hero2-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:900;
  font-size:16px;
  text-decoration:none;
  transition:transform .25s ease, box-shadow .25s ease, background-color .25s ease;
  min-height:54px;
}

.hero2-btn-primary{
  padding:16px 32px;
  background:var(--green);
  color:#0b0b0b;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.hero2-btn-primary:hover{
  transform:translateY(-2px);
}

.hero2-btn-call{
  gap:14px;
  color:#2d2d2d;
}

.hero2-call-ico{
  width:48px;
  height:48px;
  border-radius:999px;
  background:var(--green);
  display:grid;
  place-items:center;
  box-shadow:0 16px 40px rgba(0,0,0,.12);
  font-size:18px;
  flex:0 0 48px;
}

/* STATS */
.hero2-stats{
  display:flex;
  align-items:flex-end;
  gap:28px;
  width:min(640px,100%);
  padding-top:18px;
  border-top:1px solid var(--line);
  flex-wrap:wrap;
}

.hero2-stat{
  min-width:110px;
}

.hero2-stat-num{
  font-weight:950;
  font-size:32px;
  line-height:1;
}

.hero2-stat-label{
  margin-top:6px;
  font-size:15px;
  color:#777;
  font-weight:650;
  line-height:1.45;
}

.hero2-divider{
  width:1px;
  height:44px;
  background:var(--line);
  flex:0 0 1px;
}

/* ================= RIGHT ================= */
.hero2-right{
  min-width:0;
  display:flex;
  justify-content:flex-end;
  animation:fadeScale .9s ease both;
}

.hero2-slider{
  width:min(580px,100%);
  min-width:0;
}

/* IMAGE VIEWPORT */
.hero2-viewport{
  position:relative;
  width:100%;
  min-height:680px;
  border-radius:999px 0 0 999px;
  overflow:hidden;
  background:linear-gradient(180deg,#eef3ff,#f4f4f4);
  box-shadow:0 26px 80px rgba(0,0,0,.12);
  outline:none;
}

/* SLIDER */
.hero2-track{
  display:flex;
  width:100%;
  height:100%;
  transform:translateX(0);
  transition:transform .55s ease;
  will-change:transform;
}

.hero2-slide{
  flex:0 0 100%;
  min-width:100%;
  height:100%;
  margin:0;
}

.hero2-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* CAPTION */
.hero2-caption{
  position:absolute;
  left:18px;
  right:auto;
  bottom:18px;
  max-width:calc(100% - 120px);
  padding:12px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(0,0,0,.1);
  font-weight:900;
  font-size:15px;
  line-height:1.35;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  white-space:normal;
  overflow-wrap:anywhere;
}

/* FLOATING RING */
.hero2-ring{
  position:absolute;
  right:26px;
  bottom:26px;
  width:170px;
  height:170px;
  border-radius:999px;
  border:18px solid var(--green2);
  animation:float 6s ease-in-out infinite;
  pointer-events:none;
}

/* ================= CONTROLS ================= */
.hero2-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:16px;
}

.hero2-arrow{
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.1);
  background:rgba(0,0,0,.03);
  font-size:24px;
  cursor:pointer;
  flex:0 0 48px;
}

.hero2-dots{
  display:flex;
  gap:10px;
  flex:1;
  justify-content:center;
  align-items:center;
  min-width:0;
}

.hero2-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#ddd;
  border:0;
  cursor:pointer;
  flex:0 0 12px;
}

.hero2-dot.is-active{
  background:var(--green2);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(18px);}
  to{opacity:1;transform:none;}
}

@keyframes fadeScale{
  from{opacity:0;transform:scale(.96);}
  to{opacity:1;transform:none;}
}

@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}

/* ================= LARGE TABLET ================= */
@media (max-width:1100px){
  .hero2-grid{
    grid-template-columns:1fr 1fr;
    min-height:auto;
  }

  .hero2-title{
    font-size:clamp(34px, 5vw, 56px);
    max-width:13ch;
  }

  .hero2-sub{
    font-size:17px;
    line-height:1.75;
  }

  .hero2-viewport{
    min-height:580px;
  }

  .hero2-ring{
    width:150px;
    height:150px;
    border-width:16px;
  }
}

/* ================= TABLET ================= */
@media (max-width:980px){
  .hero2{
    padding:18px 0 30px;
  }

  .hero2-shell{
    width:min(100%, calc(100% - 24px));
  }

  .hero2-grid{
    grid-template-columns:1fr;
    gap:24px;
    min-height:auto;
  }

  .hero2-right{
    order:-1;
    justify-content:center;
  }

  .hero2-left{
    margin-top:0;
    padding-inline:2px;
  }

  .hero2-title{
    font-size:clamp(32px, 7vw, 48px);
    line-height:1.1;
    letter-spacing:-.8px;
    margin-bottom:14px;
    max-width:100%;
  }

  .hero2-sub{
    max-width:100%;
    font-size:17px;
    line-height:1.7;
    margin-bottom:22px;
  }

  .hero2-cta{
    gap:14px;
    margin-bottom:30px;
  }

  .hero2-btn-primary{
    padding:15px 26px;
  }

  .hero2-stats{
    gap:18px;
    padding-top:16px;
  }

  .hero2-stat-num{
    font-size:28px;
  }

  .hero2-stat-label{
    font-size:14px;
  }

  .hero2-viewport{
    min-height:460px;
    border-radius:28px;
  }

  .hero2-caption{
    left:14px;
    bottom:14px;
    max-width:calc(100% - 100px);
    padding:11px 16px;
    font-size:14px;
  }

  .hero2-ring{
    width:128px;
    height:128px;
    border-width:14px;
    right:16px;
    bottom:16px;
  }

  .hero2-controls{
    margin-top:14px;
  }
}

/* ================= MOBILE ================= */
@media (max-width:640px){
  .hero2{
    padding:14px 0 26px;
  }

  .hero2-shell{
    width:min(100%, calc(100% - 16px));
  }

  .hero2-grid{
    gap:20px;
  }

  .hero2-slider{
    width:100%;
  }

  .hero2-viewport{
    min-height:320px;
    border-radius:24px;
  }

  .hero2-caption{
    left:12px;
    bottom:12px;
    max-width:calc(100% - 24px);
    padding:10px 14px;
    font-size:13px;
    border-radius:999px;
  }

  .hero2-ring{
    width:98px;
    height:98px;
    border-width:12px;
    right:-10px;
    top:20px;
    bottom:auto;
  }

  .hero2-controls{
    justify-content:center;
    gap:10px;
  }

  .hero2-arrow{
    width:44px;
    height:44px;
    font-size:22px;
  }

  .hero2-dots{
    gap:8px;
  }

  .hero2-dot{
    width:11px;
    height:11px;
    flex-basis:11px;
  }

  .hero2-title{
    font-size:clamp(26px, 9vw, 38px);
    line-height:1.14;
    letter-spacing:-.5px;
    margin-bottom:12px;
  }

  .hero2-sub{
    font-size:16px;
    line-height:1.65;
    margin-bottom:18px;
  }

  .hero2-cta{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    margin-bottom:24px;
  }

  .hero2-btn-primary,
  .hero2-btn-call{
    width:100%;
  }

  .hero2-btn{
    font-size:15px;
    min-height:52px;
  }

  .hero2-btn-call{
    justify-content:flex-start;
  }

  .hero2-call-ico{
    width:44px;
    height:44px;
    flex-basis:44px;
    font-size:16px;
  }

  .hero2-stats{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px 14px;
    width:100%;
  }

  .hero2-divider{
    display:none;
  }

  .hero2-stat{
    min-width:0;
  }

  .hero2-stat-num{
    font-size:24px;
  }

  .hero2-stat-label{
    font-size:13px;
    line-height:1.4;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width:480px){
  .hero2-shell{
    width:calc(100% - 12px);
  }

  .hero2-grid{
    gap:18px;
  }

  .hero2-viewport{
    min-height:270px;
    border-radius:20px;
  }

  .hero2-title{
    font-size:clamp(22px, 8.9vw, 34px);
    line-height:1.16;
    letter-spacing:-.35px;
  }

  .hero2-sub{
    font-size:15px;
    line-height:1.62;
  }

  .hero2-caption{
    left:10px;
    bottom:10px;
    max-width:calc(100% - 20px);
    padding:9px 12px;
    font-size:12.5px;
  }

  .hero2-ring{
    width:84px;
    height:84px;
    border-width:10px;
    right:-14px;
    top:16px;
  }

  .hero2-controls{
    margin-top:12px;
  }

  .hero2-arrow{
    width:40px;
    height:40px;
    border-radius:12px;
    font-size:20px;
  }

  .hero2-dot{
    width:10px;
    height:10px;
    flex-basis:10px;
  }

  .hero2-stat-num{
    font-size:22px;
  }

  .hero2-stat-label{
    font-size:12.5px;
  }
}

/* ================= EXTRA SMALL DEVICES ================= */
@media (max-width:380px){
  .hero2-viewport{
    min-height:240px;
  }

  .hero2-title{
    font-size:clamp(20px, 8.2vw, 30px);
    line-height:1.18;
  }

  .hero2-sub{
    font-size:14.5px;
    line-height:1.58;
  }

  .hero2-caption{
    font-size:12px;
    padding:8px 11px;
  }

  .hero2-ring{
    display:none;
  }

  .hero2-stats{
    grid-template-columns:1fr;
    gap:14px;
  }

  .hero2-btn{
    font-size:14px;
  }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce){
  *{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}