/* ==========================================================
   Services Carousel - scoped styles
   All selectors are namespaced under .hct-carousel-wrap so this
   plugin's CSS never collides with Woodmart's theme classes.
   ========================================================== */
.hct-carousel-wrap{
  --hct-card-border:#e7e7ea;
  --hct-title-color:#101828;
  --hct-desc-color:#6b7280;
  --hct-arrow-bg:#eef0f3;
  --hct-arrow-bg-hover:#101828;
  --hct-arrow-icon:#101828;
  --hct-arrow-icon-hover:#ffffff;
  --hct-dot-inactive:#d9dbe0;
  --hct-dot-active:#101828;
  --hct-card-radius:20px;
  --hct-img-radius:14px;

  box-sizing:border-box;
  position:relative;
  max-width:100%;
  width:100%;
  margin:0 auto;
  padding:0 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.hct-carousel-wrap *{ box-sizing:border-box; }

/* ============ CAROUSEL SHELL ============ */
.hct-carousel-viewport{
  overflow:hidden;
}

.hct-carousel-track{
  display:flex;
  gap:24px;
  transition: transform 0.55s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}

/* ============ CARD ============ */
.hct-card{
  flex:0 0 auto;
  width:calc((100% - 24px*3) / 4); /* 4 cards visible on desktop */
  border:1px solid var(--hct-card-border);
  border-radius:var(--hct-card-radius);
  padding:28px;
  display:flex;
  flex-direction:column;
  background:#fff;
}

.hct-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.hct-card-title{
  font-size:24px;
  font-weight:700;
  color:var(--hct-title-color);
  margin:0;
  line-height:1.25;
}

.hct-card-arrow{
  flex:0 0 auto;
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--hct-arrow-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  cursor:pointer;
  transition:background .2s ease;
  text-decoration:none;
}
.hct-card-arrow svg{
  width:20px;
  height:20px;
  stroke:var(--hct-arrow-icon);
  transition:stroke .2s ease;
}
.hct-card-arrow:hover{
  background:var(--hct-arrow-bg-hover);
}
.hct-card-arrow:hover svg{
  stroke:var(--hct-arrow-icon-hover);
}

.hct-card-desc{
  font-size:16px;
  line-height:1.5;
  color:var(--hct-desc-color);
  margin:0 0 20px 0;
}

.hct-card-img-wrap{
  margin-top:auto;
  width:100%;
  aspect-ratio: 4 / 3.2;
  border-radius:var(--hct-img-radius);
  overflow:hidden;
  background:#f2f2f4;
}
.hct-card-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  margin:0;
}

/* ============ NAV ARROWS (outside carousel) ============ */
.hct-nav-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  border:1px solid var(--hct-card-border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  box-shadow:0 4px 12px rgba(16,24,40,.06);
  padding:0;
}
.hct-nav-btn svg{ width:20px; height:20px; stroke:var(--hct-title-color); }
.hct-nav-prev{ left:8px; }
.hct-nav-next{ right:8px; }
.hct-nav-btn:hover{ background:var(--hct-title-color); }
.hct-nav-btn:hover svg{ stroke:#fff; }
.hct-nav-btn[disabled]{ opacity:.35; cursor:default; }
.hct-nav-btn[disabled]:hover{ background:#fff; }
.hct-nav-btn[disabled]:hover svg{ stroke:var(--hct-title-color); }

/* ============ DOTS (mobile) ============ */
.hct-dots{
  display:none;
  justify-content:center;
  gap:8px;
  margin-top:20px;
}
.hct-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--hct-dot-inactive);
  border:none;
  cursor:pointer;
  padding:0;
}
.hct-dot.hct-active{ background:var(--hct-dot-active); width:20px; border-radius:4px; transition:width .2s ease;}

/* ============ RESPONSIVE ============ */
@media (max-width:1100px){
  .hct-card{ width:calc((100% - 24px*2) / 3); } /* 3 visible on tablets */
}
@media (max-width:820px){
  .hct-card{ width:calc((100% - 24px*1) / 2); } /* 2 visible on small tablets */
}
@media (max-width:640px){
  .hct-carousel-wrap{ padding:0 16px; }
  .hct-card{ width:100%; }
  .hct-nav-btn{ display:none; }
  .hct-dots{ display:flex; }
  .hct-card-title{ font-size:20px; }
  .hct-card-arrow{ width:40px; height:40px; }
}
