/* Homepage product carousel — progressive enhancement layered on the local catalogue */
.home-programs{
  padding-top:72px;
  padding-bottom:68px;
}
.home-programs .section-heading{
  margin-bottom:31px;
}
.home-programs .section-heading .text-link{
  color:var(--green);
}
.home-carousel{
  position:relative;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 48px rgba(18,76,64,.055);
  overflow:hidden;
  touch-action:pan-y;
}
.home-carousel-stage{
  position:relative;
  min-height:510px;
}
.home-slide{
  display:grid;
  grid-template-columns:minmax(0,1.17fr) minmax(330px,.83fr);
  min-height:510px;
  background:#fff;
}
.home-carousel:not(.is-ready) .home-slide:not(:first-child){
  display:none;
}
.home-slide[hidden]{
  display:none!important;
}
.home-product-visual{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  margin:0;
  padding:22px 22px 15px;
  background:linear-gradient(140deg,#e7efe8 0%,#f5f4eb 100%);
  border-right:1px solid var(--line);
}
.home-product-ribbon{
  position:absolute;
  z-index:1;
  top:40px;
  left:40px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  max-width:calc(100% - 64px);
  padding:7px 11px;
  border-radius:6px;
  color:var(--green);
  background:rgba(250,250,245,.94);
  box-shadow:0 5px 16px rgba(18,76,64,.08);
  font-size:9px;
  font-weight:700;
  letter-spacing:1.1px;
  line-height:1.2;
  text-transform:uppercase;
}
.home-product-ribbon::before{
  width:7px;
  height:7px;
  flex:0 0 auto;
  border-radius:2px;
  background:var(--coral);
  content:'';
}
.home-product-visual img{
  display:block;
  width:100%;
  height:420px;
  margin:auto;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 16px 17px rgba(18,76,64,.08));
}
.home-product-visual figcaption{
  padding:4px 5px 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
.home-product-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
  padding:49px 47px 38px;
}
.home-carousel-index{
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  margin-bottom:29px;
  color:var(--green);
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
  line-height:1;
}
.home-carousel-index span:last-of-type{
  color:#91a69a;
  font-weight:600;
}
.home-product-icon{
  width:31px;
  height:31px;
  margin-bottom:19px;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.6;
  color:var(--coral);
}
.home-product-copy h3{
  max-width:430px;
  margin-bottom:15px;
  color:var(--ink);
  font-size:clamp(29px,3.1vw,40px);
  letter-spacing:-1.55px;
  line-height:1.08;
}
.home-product-description{
  max-width:420px;
  margin-bottom:21px;
  color:var(--muted);
  font-size:14px;
  line-height:1.72;
}
.home-product-price{
  display:flex;
  align-items:baseline;
  gap:12px;
  width:100%;
  margin:0 0 24px;
  padding-block:15px;
  border-block:1px solid var(--line);
}
.home-product-price strong{
  color:var(--green);
  font-size:23px;
  letter-spacing:-.65px;
  line-height:1;
}
.home-product-price span{
  color:var(--muted);
  font-size:10px;
  font-weight:600;
  line-height:1.35;
}
.home-product-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:13px 18px;
  margin-top:auto;
}
.home-product-actions .button{
  padding:12px 16px;
  font-size:12px;
}
.home-product-actions .text-link{
  font-size:12px;
  gap:9px;
}
.home-carousel-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:17px 21px 18px;
  border-top:1px solid var(--line);
  background:#fcfcf8;
}
.home-carousel-selectors{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  overflow-x:auto;
  padding:3px 1px 7px;
  scrollbar-width:thin;
}
.home-carousel-selector{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:7px;
  min-height:31px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:6px;
  color:var(--muted);
  background:transparent;
  font-size:10px;
  font-weight:700;
  line-height:1.15;
  text-align:left;
  transition:background .18s,border-color .18s,color .18s;
}
.home-carousel-selector:hover{
  color:var(--green);
  background:#eff4ee;
}
.home-carousel-selector[aria-current="true"]{
  border-color:#bdd0c2;
  color:var(--green);
  background:#e7f0e8;
}
.home-selector-number{
  color:var(--coral);
  font-size:9px;
  letter-spacing:.7px;
}
.home-carousel-controls{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:7px;
}
.home-carousel-control{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--green);
  background:#fff;
  cursor:pointer;
  transition:background .18s,border-color .18s,transform .18s;
}
.home-carousel-control:hover:not(:disabled){
  border-color:#9dbba7;
  background:#eff5ef;
  transform:translateY(-1px);
}
.home-carousel-control:disabled{
  cursor:not-allowed;
  opacity:.48;
}
.home-carousel-control svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.8;
}
.home-carousel-control[data-carousel-pause]{
  width:auto;
  padding-inline:11px;
  border-radius:18px;
  font-size:10px;
  font-weight:700;
}
.home-carousel-control[data-carousel-pause] svg{
  width:13px;
  height:13px;
  margin-right:5px;
}
.home-program-terms{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin:20px 0 0;
  border:1px solid var(--line);
  border-left:4px solid var(--coral);
  border-radius:12px;
  background:#eef2eb;
  overflow:hidden;
}
.home-program-terms>div{
  min-width:0;
  padding:18px 21px;
}
.home-program-terms>div+div{
  border-left:1px solid #d6ded5;
}
.home-program-terms strong{
  display:block;
  margin-bottom:6px;
  color:var(--green);
  font-size:11px;
  letter-spacing:.35px;
}
.home-program-terms p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}
.home-program-terms a{
  color:var(--green);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:#aac0af;
  text-underline-offset:3px;
}
.home-program-terms a:hover{
  text-decoration-color:var(--green);
}
.home-carousel .sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
@media(max-width:960px){
  .home-slide{grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);min-height:465px}
  .home-carousel-stage{min-height:465px}
  .home-product-visual{padding:18px 18px 13px}
  .home-product-visual img{height:380px}
  .home-product-ribbon{top:31px;left:31px}
  .home-product-copy{padding:38px 31px 30px}
  .home-product-copy h3{font-size:32px}
  .home-carousel-footer{align-items:flex-start;flex-direction:column;gap:11px}
  .home-carousel-selectors{width:100%}
  .home-carousel-controls{align-self:flex-end;margin-top:0}
  .home-program-terms>div{padding:17px}
}
@media(max-width:720px){
  .home-programs{padding-top:49px;padding-bottom:48px}
  .home-carousel{border-radius:15px}
  .home-carousel-stage{min-height:0}
  .home-slide{grid-template-columns:1fr;min-height:0}
  .home-product-visual{min-height:0;padding:14px 14px 11px;border-right:0;border-bottom:1px solid var(--line)}
  .home-product-visual img{height:auto;min-height:0;max-height:none;aspect-ratio:16/9}
  .home-product-ribbon{top:28px;left:28px;max-width:calc(100% - 56px);font-size:8px}
  .home-product-copy{padding:29px 25px 25px}
  .home-carousel-index{margin-bottom:22px}
  .home-product-icon{width:28px;height:28px;margin-bottom:16px}
  .home-product-copy h3{font-size:31px}
  .home-product-description{font-size:13px;margin-bottom:18px}
  .home-product-price{margin-bottom:20px}
  .home-carousel-footer{padding:13px 14px 14px}
  .home-carousel-selectors{width:100%;padding-bottom:5px}
  .home-carousel-controls{align-self:flex-end;margin-top:-5px}
  .home-program-terms{grid-template-columns:1fr;margin-top:16px}
  .home-program-terms>div{padding:16px 18px}
  .home-program-terms>div+div{border-top:1px solid #d6ded5;border-left:0}
}
@media(max-width:430px){
  .home-product-copy{padding:25px 20px 22px}
  .home-product-copy h3{font-size:28px;letter-spacing:-1.25px}
  .home-product-price{align-items:flex-start;flex-direction:column;gap:5px}
  .home-product-actions{align-items:stretch;flex-direction:column;width:100%}
  .home-product-actions .button{justify-content:space-between;width:100%}
  .home-product-actions .text-link{width:max-content}
  .home-carousel-controls{align-self:stretch;justify-content:flex-end;margin-top:0}
  .home-carousel-control[data-carousel-pause]{margin-right:auto}
}
@media(prefers-reduced-motion:reduce){
  .home-carousel-selector,.home-carousel-control{transition:none}
}

.home-carousel.is-ready .home-slide:not([hidden]) { animation: home-product-enter .48s ease both; }
@keyframes home-product-enter { from { opacity:.28; transform:translateX(14px); } to { opacity:1; transform:translateX(0); } }
@media(prefers-reduced-motion:reduce) { .home-carousel.is-ready .home-slide:not([hidden]) { animation:none; } }

.home-carousel-controls[hidden] { display:none!important; }
.home-carousel.is-ready .home-carousel-stage { display:grid; }
.home-carousel.is-ready .home-slide { grid-area:1 / 1; }
.home-carousel.is-ready .home-slide[hidden] { display:grid!important; visibility:hidden; pointer-events:none; }
