/* ═══════════════════════════════════════════════════════
   Feature Carousel — service-page two-column carousel
   Left: vertical scrolling list of pill buttons (active highlighted)
   Right: stack of image cards (active centered, prev/next angled)
   Brand: forest green (var(--forest)) instead of 21st.dev blue
   ═══════════════════════════════════════════════════════ */

.svc-fc-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .svc-fc-section {
    padding: 2rem;
  }
}

.svc-fc-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--cream, #efefeb);
}

@media (min-width: 768px) {
  .svc-fc-wrapper {
    border-radius: 2.5rem;
    min-height: 600px;
  }
}

@media (min-width: 1024px) {
  .svc-fc-wrapper {
    flex-direction: row;
    border-radius: 4rem;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

/* ─── Left column ─── */
.svc-fc-left {
  width: 100%;
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 0.75rem;
  background: var(--forest, #537d4f);
  min-height: 160px;
}

@media (min-width: 768px) {
  .svc-fc-left {
    padding: 3rem 4rem;
    min-height: 450px;
  }
}

@media (min-width: 1024px) {
  .svc-fc-left {
    width: 40%;
    height: 100%;
    min-height: 0;
    padding-left: 4rem;
  }
}

.svc-fc-gradient-top,
.svc-fc-gradient-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 3rem;
  z-index: 40;
  pointer-events: none;
}

@media (min-width: 768px) {
  .svc-fc-gradient-top,
  .svc-fc-gradient-bottom {
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .svc-fc-gradient-top,
  .svc-fc-gradient-bottom {
    height: 4rem;
  }
}

.svc-fc-gradient-top {
  top: 0;
  background: linear-gradient(to bottom,
    var(--forest, #537d4f) 0%,
    rgba(83, 125, 79, 0.8) 50%,
    transparent 100%);
}

.svc-fc-gradient-bottom {
  bottom: 0;
  background: linear-gradient(to top,
    var(--forest, #537d4f) 0%,
    rgba(83, 125, 79, 0.8) 50%,
    transparent 100%);
}

.svc-fc-list {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

@media (min-width: 1024px) {
  .svc-fc-list {
    justify-content: flex-start;
  }
}

/* Wraps each pill button — JS sets translateY + opacity */
.fc-item-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: fit-content;
  max-width: 92vw;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  .fc-item-wrap {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .fc-item-wrap {
    height: 65px;
  }
}

.fc-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  cursor: pointer;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'DM Sans', 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .fc-btn {
    padding: 0.85rem 1.75rem;
    font-size: 14px;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .fc-btn {
    padding: 0.7rem 1.4rem;
    font-size: 14px;
  }
}

.fc-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.fc-btn.active {
  background: #fff;
  color: var(--forest, #537d4f);
  border-color: #fff;
  z-index: 10;
}

.fc-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.5s ease;
  flex-shrink: 0;
}

.fc-btn-icon svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 1024px) {
  .fc-btn-icon svg {
    width: 18px;
    height: 18px;
  }
}

.fc-btn.active .fc-btn-icon {
  color: var(--forest, #537d4f);
}

.fc-btn-icon svg {
  display: block;
}

/* ─── Right column ─── */
.svc-fc-right {
  flex: 1;
  position: relative;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow: hidden;
  min-height: 280px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
  .svc-fc-right {
    padding: 6rem 3rem;
    min-height: 600px;
  }
}

@media (min-width: 1024px) {
  .svc-fc-right {
    height: 100%;
    min-height: 0;
    padding: 4rem 2.5rem;
    border-top: none;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.svc-fc-cards {
  position: relative;
  width: min(100%, 280px);
  max-width: 420px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .svc-fc-cards {
    width: 100%;
  }
}

.fc-card {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  overflow: hidden;
  border: 4px solid #fff;
  background: #fff;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

@media (min-width: 768px) {
  .fc-card {
    border-radius: 2.8rem;
    border-width: 8px;
  }
}

.fc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.7s ease;
  filter: grayscale(1) blur(2px) brightness(0.75);
}

.fc-card.active img {
  filter: none;
}

.fc-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.1rem 1.25rem;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    transparent 80%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

@media (min-width: 768px) {
  .fc-card-overlay {
    padding: 2.5rem 1.75rem 2rem;
  }
}

.fc-card.active .fc-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.fc-card-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--text-primary, #0f172a);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 9px;
  font-family: 'DM Sans', 'Outfit', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .fc-card-pill {
    padding: 0.4rem 1rem;
    font-size: 10px;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
  }
}

.fc-card-desc {
  color: #fff;
  font-family: 'DM Serif Display', 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .fc-card-desc {
    font-size: 1.9rem;
  }
}

.fc-card-live {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .fc-card-live {
    top: 1.75rem;
    left: 1.75rem;
    gap: 0.75rem;
  }
}

.fc-card.active .fc-card-live {
  opacity: 1;
}

.fc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.fc-live-text {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 400;
}
