/* ==========================================================================
   Elevate Care Connect — Home v2 (10/16). v1 archived in
   src/archive/home-v1-2026-10-16/home.css.
   ========================================================================== */

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; height: min(100svh, 860px); min-height: 620px; overflow: hidden; background: var(--green); color: #fff; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 9s linear; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,25,21,.78) 0%, rgba(0,25,21,.55) 45%, rgba(0,25,21,.25) 100%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 30px; padding-bottom: 60px; }
.hero__label { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 22px; }
.hero__label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__title { max-width: 860px; font-family: var(--serif); font-size: 72px; line-height: 1.08; font-weight: 600; color: #fff; margin-bottom: 38px; }
.hero__slide .hero__label, .hero__slide .hero__title, .hero__slide .btn { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__label { opacity: 1; transform: none; transition-delay: .25s; }
.hero__slide.is-active .hero__title { opacity: 1; transform: none; transition-delay: .4s; }
.hero__slide.is-active .btn { opacity: 1; transform: none; transition-delay: .55s; }
.hero .btn { background: var(--teal); border-color: var(--teal); color: var(--green); }
.hero .btn:hover { background: #fff; border-color: #fff; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 150px; z-index: 3; display: flex; align-items: center; gap: 14px; }
.hero__arrow { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.hero__arrow svg { width: 16px; height: 16px; }
.hero__arrow:hover { background: #fff; border-color: #fff; color: var(--green); }
.hero__count { font-size: 14px; font-weight: 500; letter-spacing: 1px; color: rgba(255,255,255,.7); min-width: 64px; text-align: center; }
.hero__count b { color: #fff; font-weight: 700; }
.hero__progress { width: 120px; height: 2px; margin-left: 10px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__progress i { display: block; height: 100%; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.hero__progress i.is-running { animation: heroProgress var(--hero-ms, 9000ms) linear forwards; }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero__scroll { position: absolute; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 26px 40px 26px 36px; background: rgba(133,166,166,.6);
  border-radius: 15px 0 0 0; font-size: 14px; font-weight: 500; letter-spacing: .3px; color: #fff; }
.hero__scroll img { width: 18px; height: 18px; animation: nudge 2s var(--ease) infinite; }
.hero__scroll:hover { background: var(--teal); color: var(--green); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* --- Pillars (raised over the hero) ------------------------------------------ */
.pillars { position: relative; z-index: 4; margin-top: -110px; padding-bottom: var(--section); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { position: relative; padding: 44px 38px 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(22,56,56,.14); }
.js .pillar[data-reveal].is-in:hover { transform: translateY(-4px); }
.pillar__num { position: absolute; top: 34px; right: 36px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--teal); }
.pillar__icon { width: 58px; height: 58px; margin-bottom: 26px; }
.pillar .h-card { margin-bottom: 12px; max-width: 260px; }
.pillar p { font-size: 16px; line-height: 1.7; }

/* --- About ---------------------------------------------------------------------- */
.about-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.about-head__title { max-width: 820px; }
.about-head .btn { flex: none; margin-bottom: 8px; }
.about-grid { padding: 64px 0 var(--section); }
.about-grid__inner { display: grid; grid-template-columns: 1.08fr 1fr; gap: 110px; align-items: center; }
.about-grid__photo { position: relative; margin: 0; }
.about-grid__photo > img { width: 100%; aspect-ratio: 685 / 640; object-fit: cover; border-radius: var(--radius); }
.impact { position: absolute; right: -64px; bottom: 44px; width: 330px; padding: 32px 32px 30px; border-radius: 12px; background: var(--green); box-shadow: var(--shadow); }
.impact .h-card { color: #fff; margin-bottom: 10px; }
.impact p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.86); }
.about-grid__list { display: grid; gap: 0; }
.feature { display: grid; grid-template-columns: 58px 1fr; gap: 26px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.feature:first-child { padding-top: 0; }
.feature img { width: 58px; height: 58px; }
.feature .h-card { margin-bottom: 10px; }
.about-grid__list .link-arrow { margin-top: 30px; justify-self: start; }

/* --- Process (green band) ---------------------------------------------------- */
.process { padding: var(--section) 0; background: var(--green) url('../assets/img/ripple-dots.svg') no-repeat calc(50% - 240px) 70% / 560px auto; color: rgba(255,255,255,.72); }
.process__inner { display: grid; grid-template-columns: 470px 1fr; gap: 20px; align-items: start; }
.process__intro .h-xl { font-size: 46px; }
.process__intro .h-xl { color: #fff; margin: 0 0 34px; }
.process__steps { list-style: none; margin: 0; padding: 6px 0 0; }
.step { position: relative; display: grid; grid-template-columns: 58px 1fr; column-gap: 24px; padding-left: var(--pl); }
.step + .step { margin-top: 56px; }
.step::before { content: ""; position: absolute; left: calc(var(--pl) - 232px); top: 92px; width: 109px; height: 140px; background: url('../assets/img/step-line.svg') no-repeat 0 0 / 109px 140px; opacity: .6; pointer-events: none; } /* points from this number to the next */
.step--3::before { display: none; }
.step--1 { --pl: 330px; } .step--2 { --pl: 200px; } .step--3 { --pl: 70px; }
.step__num { position: absolute; left: calc(var(--pl) - 112px); top: 34px; font-family: var(--serif); font-size: 38px; line-height: 1; font-weight: 700; color: #fff; }
.step__icon { width: 58px; height: 58px; filter: brightness(0) invert(.82) sepia(.2) hue-rotate(130deg); } /* light version on the dark band */
.step__body { max-width: 420px; }
.step .h-card { color: #fff; margin-bottom: 10px; }
.step p { font-size: 16px; }

/* --- Services ------------------------------------------------------------------ */
.services { padding: var(--section) 0; background: var(--tint); }
.services__inner { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.services__intro { position: sticky; top: 120px; }
.services__lede { margin: 18px 0 30px; font-size: 17px; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.svc { position: relative; overflow: hidden; display: grid; grid-template-columns: 58px 1fr; column-gap: 22px; align-content: start; padding: 44px 38px 52px;
  border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.svc:nth-child(odd) { border-right: 1px solid var(--line); }
.svc--wide { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0; }
.svc--wide .svc__body { max-width: 640px; }
.svc__icon { width: 58px; height: 58px; }
.svc .h-card { margin-bottom: 10px; }
.svc p { font-size: 16px; margin-bottom: 18px; }
.svc .link-arrow { position: relative; z-index: 1; }
.svc__num { position: absolute; right: 28px; bottom: -40px; font-family: var(--serif); font-size: 130px; line-height: 1; font-weight: 700; color: transparent;
  -webkit-text-stroke: 1px rgba(133,166,166,.7); transition: color .35s var(--ease); pointer-events: none; }
.svc:hover { background: #FBFDFD; }
.svc:hover .svc__num { color: rgba(133,166,166,.12); }

/* --- CTA card + FAQ -------------------------------------------------------------- */
.faq-band { padding: var(--section) 0; }
.faq-band__inner { display: grid; grid-template-columns: 420px 1fr; gap: 90px; align-items: start; }
.faq-band .cta-card { position: sticky; top: 120px; }
.faq .h-xl { margin-bottom: 40px; }

/* --- Responsive -------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .hero__title { font-size: 60px; }
  .pillar { padding: 38px 30px; }
  .about-grid__inner { gap: 80px; }
  .impact { right: -40px; width: 300px; }
  .process__inner { grid-template-columns: 1fr; gap: 56px; }
  .step--1 { --pl: 300px; } .step--2 { --pl: 190px; } .step--3 { --pl: 80px; }
  .services__inner { grid-template-columns: 1fr; gap: 48px; }
  .services__intro { position: static; max-width: 640px; }
  .faq-band__inner { grid-template-columns: 1fr 1.25fr; gap: 56px; }
}
@media (max-width: 1023px) {
  .hero { height: min(100svh, 760px); min-height: 600px; }
  .hero__title { font-size: 50px; }
  .hero__controls { bottom: 120px; }
  .pillars { margin-top: -80px; }
  .pillars__grid { grid-template-columns: 1fr; gap: 20px; max-width: 620px; }
  .about-head__row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .about-grid__inner { grid-template-columns: 1fr; gap: 72px; }
  .about-grid__photo { margin-right: 40px; }
  .step--1, .step--2, .step--3 { --pl: 116px; }
  .faq-band__inner { grid-template-columns: 1fr; gap: 64px; }
  .faq-band .cta-card { position: static; max-width: 560px; }
}
@media (max-width: 767px) {
  .hero { height: auto; min-height: 0; }
  .hero__slides { position: relative; height: 600px; }
  .hero__content { padding-bottom: 120px; }
  .hero__title { font-size: 38px; margin-bottom: 28px; }
  .hero__controls { bottom: 86px; }
  .hero__progress { width: 60px; }
  .hero__scroll { padding: 16px 20px; font-size: 13px; }
  .pillars { margin-top: -50px; }
  .pillar { padding: 32px 26px; }
  .pillar__num { top: 26px; right: 24px; }
  .about-grid { padding-top: 48px; }
  .about-grid__photo { margin-right: 0; }
  .impact { position: relative; right: auto; bottom: auto; width: auto; margin: -60px 16px 0; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .step { --pl: 0px !important; grid-template-columns: 1fr; }
  .step::before { display: none; }
  .step__num { position: static; margin-bottom: 14px; color: var(--teal); font-size: 32px; }
  .step__icon { margin-bottom: 14px; }
  .services__grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; border-right: 0 !important; padding: 34px 26px 46px; }
  .svc__icon { margin-bottom: 16px; }
  .svc__num { font-size: 100px; right: 16px; bottom: -28px; }
  .cta-card { padding: 36px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__bg, .hero__slide .hero__label, .hero__slide .hero__title, .hero__slide .btn { transition: none; }
  .hero__bg { transform: none; }
  .hero__scroll img, .hero__progress i.is-running { animation: none; }
  .pillar, .pillar:hover { transition: none; transform: none; }
}
